From: eldy <> Date: Mon, 24 Nov 2003 04:53:30 +0000 (+0000) Subject: Reports look better on Mozilla browsers. X-Git-Tag: AWSTATS_6_0_BETA~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f349dea8592d0a1be6f68d9b2ecefb51e7475476;p=thirdparty%2FAWStats.git Reports look better on Mozilla browsers. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 64b65f90..7e5f6571 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -46,9 +46,9 @@ use vars qw/ $DIR $PROG $Extension $Debug $ShowSteps $DebugResetDone $DNSLookupAlreadyDone -$RunAsCli $UpdateFor $lowerval -$LastLine $LastLineNumber $LastLineOffset $LastLineChecksum -$LastUpdate +$RunAsCli $UpdateFor $HeadShown +$LastLine $LastLineNumber $LastLineOffset $LastLineChecksum $LastUpdate +$lowerval $PluginMode $TotalUnique $TotalVisits $TotalHostsKnown $TotalHostsUnknown $TotalPages $TotalHits $TotalBytes $TotalEntries $TotalExits $TotalBytesPages $TotalDifferentPages @@ -62,12 +62,11 @@ $pos_referer $pos_agent $pos_query $pos_gzipin $pos_gzipout $pos_compratio $pos_cluster $pos_emails $pos_emailr $pos_hostr /; $DIR=$PROG=$Extension=''; -$Debug=$ShowSteps=0; -$DebugResetDone=$DNSLookupAlreadyDone=0; -$RunAsCli = 0; $UpdateFor=0; +$Debug = $ShowSteps = 0; +$DebugResetDone = $DNSLookupAlreadyDone = 0; +$RunAsCli = $UpdateFor = $HeadShown = 0; +$LastLine = $LastLineNumber = $LastLineOffset = $LastLineChecksum = $LastUpdate = 0; $lowerval = 0; -$LastLine = $LastLineNumber = $LastLineOffset = $LastLineChecksum = 0; -$LastUpdate = 0; $PluginMode = ''; $TotalUnique = $TotalVisits = $TotalHostsKnown = $TotalHostsUnknown = 0; $TotalPages = $TotalHits = $TotalBytes = $TotalEntries = $TotalExits = $TotalBytesPages = $TotalDifferentPages = 0; @@ -497,7 +496,8 @@ use vars qw/ @Message /; sub html_head { my $dir=$PageDir?'right':'left'; if (scalar keys %HTMLOutput || $PluginMode) { - my $AllowIndex=0; + my $MetaRobot=0; # meta robots + $HeadShown=1; # Write head section if ($BuildReportFormat eq 'xml') { if ($PageCode) { print "\n"; } @@ -511,7 +511,7 @@ sub html_head { print "\n"; } print "
\n"; - if ($AllowIndex) { print "\n"; } + if ($MetaRobot) { print "\n"; } else { print "\n"; } # Affiche tag meta content-type @@ -520,7 +520,7 @@ sub html_head { if ($Expires) { print "\n"; } print "\n"; - if ($AllowIndex && $FrameName ne 'mainleft') { print "\n"; } + if ($MetaRobot && $FrameName ne 'mainleft') { print "\n"; } print "