From: eldy <> Date: Sat, 14 Dec 2002 17:27:27 +0000 (+0000) Subject: Fixed: Columns not aligned in allhosts and lasthosts view when not all fields are... X-Git-Tag: AWSTATS_5_3_BETA~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecc07719195c8b05b8aa546e4bd47f11cb8fa165;p=thirdparty%2FAWStats.git Fixed: Columns not aligned in allhosts and lasthosts view when not all fields are choosed. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 996e44db..1b71bf3a 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -6547,7 +6547,11 @@ EOF } print ""; if ($ShowLinksToWhoIs && $LinksToWhoIs) { print "$Message[114]"; } - print "$Message[56]$Message[57]$Message[75]$Message[9]\n"; + if ($ShowHostsStats =~ /P/i) { print "$Message[56]"; } + if ($ShowHostsStats =~ /H/i) { print "$Message[57]"; } + if ($ShowHostsStats =~ /B/i) { print "$Message[75]"; } + if ($ShowHostsStats =~ /L/i) { print "$Message[9]"; } + print "\n"; $total_p=$total_h=$total_k=0; my $count=0; if ($HTMLOutput{'allhosts'}) { &BuildKeyList($MaxRowsInHTMLOutput,$MinHitHost,\%_host_h,\%_host_p); }