]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Not viewed traffic row is not shown for ftp analysis.
authoreldy <>
Sun, 21 Mar 2004 20:01:23 +0000 (20:01 +0000)
committereldy <>
Sun, 21 Mar 2004 20:01:23 +0000 (20:01 +0000)
wwwroot/cgi-bin/awstats.pl

index 944aeff8a46907f586f1e6a060a937ff4d0098b2..b79218de934fd75cb3349e69bbbbe0bf963058c3 100644 (file)
@@ -8439,7 +8439,7 @@ if (scalar keys %HTMLOutput) {
                        print "<td class=\"aws\" colspan=\"".($colspan-1)."\">".($LastTime?Format_Date($LastTime,0):"NA")."</td>\n";\r
                        print "</tr>\n";\r
                        \r
-                       # Show main indicators\r
+                       # Show main indicators title row\r
                        print "<tr>";\r
                        if ($LogType eq 'W' || $LogType eq 'S') { print "<td bgcolor=\"#$color_TableBGTitle\">&nbsp;</td>"; }\r
                        if ($ShowMonthStats =~ /U/i) { print "<td width=\"$w%\" bgcolor=\"#$color_u\"".($TOOLTIPON?" onmouseover=\"ShowTip(2);\" onmouseout=\"HideTip(2);\"":"").">$Message[11]</td>"; } else { print "<td bgcolor=\"#$color_TableBGTitle\" width=\"20%\">&nbsp;</td>"; }\r
@@ -8448,6 +8448,7 @@ if (scalar keys %HTMLOutput) {
                        if ($ShowMonthStats =~ /H/i) { print "<td width=\"$w%\" bgcolor=\"#$color_h\"".($TOOLTIPON?" onmouseover=\"ShowTip(4);\" onmouseout=\"HideTip(4);\"":"").">$Message[57]</td>"; } else { print "<td bgcolor=\"#$color_TableBGTitle\" width=\"20%\">&nbsp;</td>"; }\r
                        if ($ShowMonthStats =~ /B/i) { print "<td width=\"$w%\" bgcolor=\"#$color_k\"".($TOOLTIPON?" onmouseover=\"ShowTip(5);\" onmouseout=\"HideTip(5);\"":"").">$Message[75]</td>"; } else { print "<td bgcolor=\"#$color_TableBGTitle\" width=\"20%\">&nbsp;</td>"; }\r
                        print "</tr>\n";\r
+                       # Show main indicators values for viewed traffic\r
                        print "<tr>";\r
                        if ($LogType eq 'M') { \r
                                print "<td class=\"aws\">$Message[165]</td>";\r
@@ -8465,22 +8466,25 @@ if (scalar keys %HTMLOutput) {
                                if ($ShowMonthStats =~ /B/i) { print "<td><b>".Format_Bytes(int($TotalBytes))."</b><br />($RatioBytes&nbsp;$Message[108]/".lc($Message[($LogType eq 'M'?149:12)]).")</td>"; } else { print "<td>&nbsp;</td>"; }\r
                        }\r
                        print "</tr>\n";\r
-                       print "<tr>";\r
-                       if ($LogType eq 'M') { \r
-                               print "<td class=\"aws\">$Message[166]</td>";\r
-                               print "<td>&nbsp;<br />&nbsp;</td>\n";\r
-                               print "<td>&nbsp;<br />&nbsp;</td>\n";\r
-                               if ($ShowMonthStats =~ /H/i) { print "<td><b>$TotalNotViewedHits</b></td>"; } else { print "<td>&nbsp;</td>"; }\r
-                               if ($ShowMonthStats =~ /B/i) { print "<td><b>".Format_Bytes(int($TotalNotViewedBytes))."</b></td>"; } else { print "<td>&nbsp;</td>"; }\r
-                       }\r
-                       else {\r
-                               if ($LogType eq 'W' || $LogType eq 'S') { print "<td class=\"aws\">$Message[161]&nbsp;*</td>"; }\r
-                               print "<td colspan=\"2\">&nbsp;<br />&nbsp;</td>\n";\r
-                               if ($ShowMonthStats =~ /P/i) { print "<td><b>$TotalNotViewedPages</b></td>"; } else { print "<td>&nbsp;</td>"; }\r
-                               if ($ShowMonthStats =~ /H/i) { print "<td><b>$TotalNotViewedHits</b></td>"; } else { print "<td>&nbsp;</td>"; }\r
-                               if ($ShowMonthStats =~ /B/i) { print "<td><b>".Format_Bytes(int($TotalNotViewedBytes))."</b></td>"; } else { print "<td>&nbsp;</td>"; }\r
-                       }\r
-                       print "</tr>\n";\r
+                       # Show main indicators values for not viewed traffic values\r
+            if ($LogType eq 'M' || $LogType eq 'W' || $LogType eq 'S') {\r
+                       print "<tr>";\r
+                       if ($LogType eq 'M') { \r
+                               print "<td class=\"aws\">$Message[166]</td>";\r
+                               print "<td>&nbsp;<br />&nbsp;</td>\n";\r
+                               print "<td>&nbsp;<br />&nbsp;</td>\n";\r
+                               if ($ShowMonthStats =~ /H/i) { print "<td><b>$TotalNotViewedHits</b></td>"; } else { print "<td>&nbsp;</td>"; }\r
+                               if ($ShowMonthStats =~ /B/i) { print "<td><b>".Format_Bytes(int($TotalNotViewedBytes))."</b></td>"; } else { print "<td>&nbsp;</td>"; }\r
+                       }\r
+                       else {\r
+                               if ($LogType eq 'W' || $LogType eq 'S') { print "<td class=\"aws\">$Message[161]&nbsp;*</td>"; }\r
+                               print "<td colspan=\"2\">&nbsp;<br />&nbsp;</td>\n";\r
+                               if ($ShowMonthStats =~ /P/i) { print "<td><b>$TotalNotViewedPages</b></td>"; } else { print "<td>&nbsp;</td>"; }\r
+                               if ($ShowMonthStats =~ /H/i) { print "<td><b>$TotalNotViewedHits</b></td>"; } else { print "<td>&nbsp;</td>"; }\r
+                               if ($ShowMonthStats =~ /B/i) { print "<td><b>".Format_Bytes(int($TotalNotViewedBytes))."</b></td>"; } else { print "<td>&nbsp;</td>"; }\r
+                       }\r
+                       print "</tr>\n";\r
+            }\r
                        &tab_end($LogType eq 'W' || $LogType eq 'S'?"* $Message[159]":"");\r
 \r
                        # BY MONTH\r