From: eldy <> Date: Mon, 15 Jan 2001 23:31:46 +0000 (+0000) Subject: Correct problem with html header of polish page. X-Git-Tag: AWSTATS_1_0~346 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95083046a7f9570000294e3fdaa71c463dd33f3d;p=thirdparty%2FAWStats.git Correct problem with html header of polish page. --- diff --git a/awstats.pl b/awstats.pl index a0b865ef..03d6e385 100644 --- a/awstats.pl +++ b/awstats.pl @@ -1547,23 +1547,17 @@ if (($ENV{"GATEWAY_INTERFACE"} eq "") && ($ARGV[0] eq "" || $ARGV[0] ne "-h" || print " All HTTP errors\n"; print " and more...\n"; print "New versions and support at http://awstats.sourceforge.net\n"; - exit 0 - } - -# Print html header -if ($ENV{"GATEWAY_INTERFACE"} ne "") { - if ($QueryString =~ /lang=/) { $Lang=$QueryString; $Lang =~ s/.*lang=//; $Lang =~ s/&.*//; } - &html_head; + exit 0; } # Read config file &Read_Config_File; -# Correct some parameters +# Print html header and correct some parameters if ($ENV{"GATEWAY_INTERFACE"} ne "") { - $DirCgi=""; - $QueryString = $ENV{"QUERY_STRING"}; if ($QueryString =~ /lang=/) { $Lang=$QueryString; $Lang =~ s/.*lang=//; $Lang =~ s/&.*//; } + &html_head; + $DirCgi=""; } if (($DirCgi ne "") && !($DirCgi =~ /\/$/) && !($DirCgi =~ /\\$/)) { $DirCgi .= "/"; } if ($DirData eq "" || $DirData eq ".") { $DirData=$DIR; } # If not defined or choosed to "." value then DirData is current dir @@ -1615,7 +1609,9 @@ for ($ix=1; $ix<=12; $ix++) { for ($ix=0; $ix<5; $ix++) { $_from_h[$ix]=0; } # Print html header -if ($ENV{"GATEWAY_INTERFACE"} eq "") { &html_head; } +if ($ENV{"GATEWAY_INTERFACE"} eq "") { + &html_head; + } print "