]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
ShowxxxStats parmaters accept codes to decide which columns to show in chart.
authoreldy <>
Fri, 4 Oct 2002 22:27:52 +0000 (22:27 +0000)
committereldy <>
Fri, 4 Oct 2002 22:27:52 +0000 (22:27 +0000)
wwwroot/cgi-bin/awstats.pl

index 504a6eadf2e5d617c3463785649c6fbfe85e0203..af076f1ace045969847af3b3967d29a3fb18e003 100644 (file)
@@ -6810,8 +6810,9 @@ EOF
                print "$Center<a name=\"FILETYPES\">&nbsp;</a><BR>\n";
                my $Totalh=0; foreach my $key (keys %_filetypes_h) { $Totalh+=$_filetypes_h{$key}; }
                my $Totalk=0; foreach my $key (keys %_filetypes_k) { $Totalk+=$_filetypes_k{$key}; }
-               if ($ShowCompressionStats) { &tab_head("$Message[73] - $Message[98]",19); }
-               else { &tab_head("$Message[73]",19); }
+               my $title="$Message[73]";
+               if ($ShowFileTypesStats =~ /C/i) { $title.=" - $Message[98]"; }
+               &tab_head("$title",19);
                print "<TR bgcolor=\"#$color_TableBGRowTitle\"><TH>$Message[73]</TH>";
                if ($ShowFileTypesStats =~ /H/i) { print "<TH bgcolor=\"#$color_h\" width=80>&nbsp;$Message[57]&nbsp;</TH><TH bgcolor=\"#$color_h\" width=80>$Message[15]</TH>"; }
                if ($ShowFileTypesStats =~ /B/i) { print "<TH bgcolor=\"#$color_k\" width=80>$Message[75]</TH>"; }