]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed: Columns not aligned in allhosts and lasthosts view when not all fields are...
authoreldy <>
Sat, 14 Dec 2002 17:27:27 +0000 (17:27 +0000)
committereldy <>
Sat, 14 Dec 2002 17:27:27 +0000 (17:27 +0000)
wwwroot/cgi-bin/awstats.pl

index 996e44db20f5ad22a759e2878f7f5198d59d1f4d..1b71bf3ad09dd653d89a6b76a11d98cab502e8fd 100644 (file)
@@ -6547,7 +6547,11 @@ EOF
                }
                print "</TH>";
                if ($ShowLinksToWhoIs && $LinksToWhoIs) { print "<TH width=80>$Message[114]</TH>"; }
-               print "<TH bgcolor=\"#$color_p\" width=80>$Message[56]</TH><TH bgcolor=\"#$color_h\" width=80>$Message[57]</TH><TH bgcolor=\"#$color_k\" width=80>$Message[75]</TH><TH width=120>$Message[9]</TH></TR>\n";
+               if ($ShowHostsStats =~ /P/i) { print "<TH bgcolor=\"#$color_p\" width=80>$Message[56]</TH>"; }
+               if ($ShowHostsStats =~ /H/i) { print "<TH bgcolor=\"#$color_h\" width=80>$Message[57]</TH>"; }
+               if ($ShowHostsStats =~ /B/i) { print "<TH bgcolor=\"#$color_k\" width=80>$Message[75]</TH>"; }
+               if ($ShowHostsStats =~ /L/i) { print "<TH width=120>$Message[9]</TH>"; }
+               print "</TR>\n";
                $total_p=$total_h=$total_k=0;
                my $count=0;
                if ($HTMLOutput{'allhosts'})  { &BuildKeyList($MaxRowsInHTMLOutput,$MinHitHost,\%_host_h,\%_host_p); }