From: eldy <> Date: Sat, 22 Jan 2005 16:34:38 +0000 (+0000) Subject: Pages for FTP report as shown as Hits. X-Git-Tag: AWSTATS_6_3_RELEASE~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=697cf5bde4d0a892575f661e646a1d9ce033f2ea;p=thirdparty%2FAWStats.git Pages for FTP report as shown as Hits. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 9c5def34..f29d5811 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -9541,7 +9541,8 @@ if (scalar keys %HTMLOutput) { if ($ShowPagesStats =~ /X/i) { $title.="   -   $Message[116]"; } &tab_head("$title",19,0,'urls'); print "$TotalDifferentPages $Message[28]"; - if ($ShowPagesStats =~ /P/i) { print "$Message[29]"; } + if ($ShowPagesStats =~ /P/i && $LogType ne 'F') { print "$Message[29]"; } + if ($ShowPagesStats =~ /[PH]/i && $LogType eq 'F') { print "$Message[57]"; } if ($ShowPagesStats =~ /B/i) { print "$Message[106]"; } if ($ShowPagesStats =~ /E/i) { print "$Message[104]"; } if ($ShowPagesStats =~ /X/i) { print "$Message[116]"; } @@ -9572,7 +9573,8 @@ if (scalar keys %HTMLOutput) { if (($bredde_x==1) && $_url_x{$key}) { $bredde_x=2; } if ($max_k > 0) { $bredde_k=int($BarWidth*(($_url_k{$key}||0)/($_url_p{$key}||1))/$max_k)+1; } if (($bredde_k==1) && $_url_k{$key}) { $bredde_k=2; } - if ($ShowPagesStats =~ /P/i) { print "$_url_p{$key}"; } + if ($ShowPagesStats =~ /P/i && $LogType ne 'F') { print "$_url_p{$key}"; } + if ($ShowPagesStats =~ /[PH]/i && $LogType eq 'F') { print "$_url_p{$key}"; } if ($ShowPagesStats =~ /B/i) { print "".($_url_k{$key}?Format_Bytes($_url_k{$key}/($_url_p{$key}||1)):" ").""; } if ($ShowPagesStats =~ /E/i) { print "".($_url_e{$key}?$_url_e{$key}:" ").""; } if ($ShowPagesStats =~ /X/i) { print "".($_url_x{$key}?$_url_x{$key}:" ").""; } @@ -9582,7 +9584,8 @@ if (scalar keys %HTMLOutput) { eval("$function"); } print ""; - if ($ShowPagesStats =~ /P/i) { print "
"; } + if ($ShowPagesStats =~ /P/i && $LogType ne 'F') { print "
"; } + if ($ShowPagesStats =~ /[PH]/i && $LogType eq 'F') { print "
"; } if ($ShowPagesStats =~ /B/i) { print "
"; } if ($ShowPagesStats =~ /E/i) { print "
"; } if ($ShowPagesStats =~ /X/i) { print ""; } @@ -9599,7 +9602,8 @@ if (scalar keys %HTMLOutput) { $rest_k=$TotalBytesPages-$total_k; if ($rest_p > 0 || $rest_k > 0 || $rest_e > 0 || $rest_x > 0) { # All other urls print "$Message[2]"; - if ($ShowPagesStats =~ /P/i) { print "$rest_p"; } + if ($ShowPagesStats =~ /P/i && $LogType ne 'F') { print "$rest_p"; } + if ($ShowPagesStats =~ /[PH]/i && $LogType eq 'F') { print "$rest_p"; } if ($ShowPagesStats =~ /B/i) { print "".($rest_k?Format_Bytes($rest_k/($rest_p||1)):" ").""; } if ($ShowPagesStats =~ /E/i) { print "".($rest_e?$rest_e:" ").""; } if ($ShowPagesStats =~ /X/i) { print "".($rest_x?$rest_x:" ").""; }