From: eldy <> Date: Sun, 21 Mar 2004 20:01:23 +0000 (+0000) Subject: Not viewed traffic row is not shown for ftp analysis. X-Git-Tag: AWSTATS_6_1_BETA~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83e0b64e1b7f86b8a97a74e95b4eaa9f5195778a;p=thirdparty%2FAWStats.git Not viewed traffic row is not shown for ftp analysis. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 944aeff8..b79218de 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -8439,7 +8439,7 @@ if (scalar keys %HTMLOutput) { print "".($LastTime?Format_Date($LastTime,0):"NA")."\n"; print "\n"; - # Show main indicators + # Show main indicators title row print ""; if ($LogType eq 'W' || $LogType eq 'S') { print " "; } if ($ShowMonthStats =~ /U/i) { print "$Message[11]"; } else { print " "; } @@ -8448,6 +8448,7 @@ if (scalar keys %HTMLOutput) { if ($ShowMonthStats =~ /H/i) { print "$Message[57]"; } else { print " "; } if ($ShowMonthStats =~ /B/i) { print "$Message[75]"; } else { print " "; } print "\n"; + # Show main indicators values for viewed traffic print ""; if ($LogType eq 'M') { print "$Message[165]"; @@ -8465,22 +8466,25 @@ if (scalar keys %HTMLOutput) { if ($ShowMonthStats =~ /B/i) { print "".Format_Bytes(int($TotalBytes))."
($RatioBytes $Message[108]/".lc($Message[($LogType eq 'M'?149:12)]).")"; } else { print " "; } } print "\n"; - print ""; - if ($LogType eq 'M') { - print "$Message[166]"; - print " 
 \n"; - print " 
 \n"; - if ($ShowMonthStats =~ /H/i) { print "$TotalNotViewedHits"; } else { print " "; } - if ($ShowMonthStats =~ /B/i) { print "".Format_Bytes(int($TotalNotViewedBytes)).""; } else { print " "; } - } - else { - if ($LogType eq 'W' || $LogType eq 'S') { print "$Message[161] *"; } - print " 
 \n"; - if ($ShowMonthStats =~ /P/i) { print "$TotalNotViewedPages"; } else { print " "; } - if ($ShowMonthStats =~ /H/i) { print "$TotalNotViewedHits"; } else { print " "; } - if ($ShowMonthStats =~ /B/i) { print "".Format_Bytes(int($TotalNotViewedBytes)).""; } else { print " "; } - } - print "\n"; + # Show main indicators values for not viewed traffic values + if ($LogType eq 'M' || $LogType eq 'W' || $LogType eq 'S') { + print ""; + if ($LogType eq 'M') { + print "$Message[166]"; + print " 
 \n"; + print " 
 \n"; + if ($ShowMonthStats =~ /H/i) { print "$TotalNotViewedHits"; } else { print " "; } + if ($ShowMonthStats =~ /B/i) { print "".Format_Bytes(int($TotalNotViewedBytes)).""; } else { print " "; } + } + else { + if ($LogType eq 'W' || $LogType eq 'S') { print "$Message[161] *"; } + print " 
 \n"; + if ($ShowMonthStats =~ /P/i) { print "$TotalNotViewedPages"; } else { print " "; } + if ($ShowMonthStats =~ /H/i) { print "$TotalNotViewedHits"; } else { print " "; } + if ($ShowMonthStats =~ /B/i) { print "".Format_Bytes(int($TotalNotViewedBytes)).""; } else { print " "; } + } + print "\n"; + } &tab_end($LogType eq 'W' || $LogType eq 'S'?"* $Message[159]":""); # BY MONTH