From: eldy <> Date: Fri, 7 Nov 2003 23:48:21 +0000 (+0000) Subject: Change for XML output with FireBird. X-Git-Tag: AWSTATS_6_0_BETA~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd20768dbe98d2d8f6683d25a853db0db6be9f22;p=thirdparty%2FAWStats.git Change for XML output with FireBird. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index a2562035..4db6572f 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -514,8 +514,9 @@ sub html_head { else { print "\n"; } # Affiche tag meta content-type - print ((! $UseXMLForOutput || $ENV{'HTTP_USER_AGENT'}=~/MSIE|Googlebot/i)?"\n":"\n"); - + if ($UseXMLForOutput) { print ($ENV{'HTTP_USER_AGENT'}=~/MSIE|Googlebot/i?"\n":"\n"); } + else { print "\n"; } + if ($Expires) { print "\n"; } print "\n"; if ($AllowIndex && $FrameName ne 'mainleft') { print "\n"; } @@ -524,7 +525,8 @@ sub html_head { # A STYLE section must be in head section. Do not use " for number in a style section print "\n"; if ($StyleSheet) {