;
@@ -4349,17 +4349,28 @@ sub ShowURLInfo {
if (length($nompage)>$MaxLengthOfURL) { $nompage=substr($nompage,0,$MaxLengthOfURL)."..."; }
if ($ShowLinksOnUrl) {
my $newkey=CleanFromCSSA($url);
- if ($newkey =~ /^http(s|):/i) { # URL seems to be extracted from a ftp or proxy log file
- print "$nompage";
+ if ($LogType eq 'W') { # Web log file
+ if ($newkey =~ /^http(s|):/i) { # URL seems to be extracted from a proxy log file
+ print "$nompage";
+ }
+ elsif ($newkey =~ /^\//) { # URL seems to be an url extracted from a web or wap server log file
+ $newkey =~ s/^\/$SiteDomain//;
+ # Define urlprot
+ my $urlprot='http';
+ if ($UseHTTPSLinkForUrl && $newkey =~ /^$UseHTTPSLinkForUrl/) { $urlprot='https'; }
+ print "$nompage";
+ }
+ else {
+ print "$nompage";
+ }
}
- elsif ($newkey =~ /^\//) { # URL seems to be an url extracted from a web or wap server log file
- $newkey =~ s/^\/$SiteDomain//;
- # Define http or https
- my $httplink='http';
- if ($UseHTTPSLinkForUrl && $newkey =~ /^$UseHTTPSLinkForUrl/) { $httplink='https'; }
- print "$nompage";
+ elsif ($LogType eq 'F') { # Ftp log file
+ print "$nompage";
}
- else {
+ elsif ($LogType eq 'M') { # Smtp log file
+ print "$nompage";
+ }
+ else { # Other type log file
print "$nompage";
}
}
@@ -5274,11 +5285,11 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') { # Updat
# Mail request ('SMTP' for mail log with maillogconvert.pl preprocessor)
$protocol=3;
}
- elsif ($field[$pos_method] eq 'RETR' || $field[$pos_method] =~ /get/i) {
+ elsif ($field[$pos_method] eq 'RETR' || $field[$pos_method] eq 'o' || $field[$pos_method] =~ /get/i) {
# FTP GET request
$protocol=2;
}
- elsif ($field[$pos_method] eq 'STOR' || $field[$pos_method] =~ /sent/i) {
+ elsif ($field[$pos_method] eq 'STOR' || $field[$pos_method] eq 'i' || $field[$pos_method] =~ /sent/i) {
# FTP SENT request
$protocol=2;
}
@@ -6975,7 +6986,7 @@ if (scalar keys %HTMLOutput) {
&html_end;
}
if ($HTMLOutput{'unknownip'}) {
- print "$Center
\n";
+ print "$Center
\n";
&tab_head("$Message[45]",19);
print "| ".(scalar keys %_host_h)." $Message[1] | ";
&ShowHostInfo('__title__');
@@ -7308,7 +7319,7 @@ if (scalar keys %HTMLOutput) {
&html_end;
}
if ($HTMLOutput{'unknownos'}) {
- print "$Center
\n";
+ print "$Center
\n";
my $title="$Message[46]";
&tab_head("$title",19);
print "
|---|
| User agent (".(scalar keys %_unknownreferer_l).") | $Message[9] |
\n";
@@ -7333,7 +7344,7 @@ if (scalar keys %HTMLOutput) {
&html_end;
}
if ($HTMLOutput{'unknownbrowser'}) {
- print "$Center
\n";
+ print "$Center
\n";
my $title="$Message[50]";
&tab_head("$title",19);
print "| User agent (".(scalar keys %_unknownrefererbrowser_l).") | $Message[9] |
\n";
@@ -8938,7 +8949,7 @@ if (scalar keys %HTMLOutput) {
if ($ShowOriginStats =~ /P/i) { print "".($_from_p[4]?$_from_p[4]:" ")." | ".($_from_p[4]?"$p_p[4] %":" ")." | "; }
if ($ShowOriginStats =~ /H/i) { print "".($_from_h[4]?$_from_h[4]:" ")." | ".($_from_h[4]?"$p_h[4] %":" ")." | "; }
print "\n";
- #------- Unkown origin
+ #------- Unknown origin
print "| $Message[39] | ";
if ($ShowOriginStats =~ /P/i) { print "".($_from_p[1]?$_from_p[1]:" ")." | ".($_from_p[1]?"$p_p[1] %":" ")." | "; }
if ($ShowOriginStats =~ /H/i) { print "".($_from_h[1]?$_from_h[1]:" ")." | ".($_from_h[1]?"$p_h[1] %":" ")." | "; }