From: eldy <> Date: Sat, 18 May 2002 14:36:05 +0000 (+0000) Subject: no message X-Git-Tag: AWSTATS_4_1_BETA~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9576edb996f3149429303ab1cb07b38edea103f7;p=thirdparty%2FAWStats.git no message --- diff --git a/wwwroot/cgi-bin/awstats.model.conf b/wwwroot/cgi-bin/awstats.model.conf index 5e9b8216..4fd9ae36 100644 --- a/wwwroot/cgi-bin/awstats.model.conf +++ b/wwwroot/cgi-bin/awstats.model.conf @@ -267,7 +267,7 @@ SkipHosts="" # the DNS. You may specify partial addresses (ie 163.85. for everything # behind the usual firewall setup, etc)... # This is only useful if DNSLookup=1. -# Note: Use space between each value and put a backslash before each dot. +# Note: Use space between each value. # Example: "163.85. 201.101.51.2" # Default: "" # @@ -493,7 +493,7 @@ DetailedReportsOnNewWindows=1 # See Lang parameter for list of allowed flag/language codes. # If you don't want any flag link, set ShowFlagLinks to "". # This parameter is used only if ShowHeader parameter is set to 1. -# Possible values: "" or "language_codes_separated_by_space". +# Possible values: "" or "language_codes_separated_by_space" # Default: "en es fr it nl es" # ShowFlagLinks="en fr de it nl es" diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index c38b1aff..7d06fd2c 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -25,6 +25,7 @@ use Time::Local; # use Time::Local 'timelocal_nocheck' is not supported by all T #------------------------------------------------------- # Defines #------------------------------------------------------- +use vars qw/ $REVISION $VERSION /; my $REVISION='$Revision$'; $REVISION =~ /\s(.*)\s/; $REVISION=$1; my $VERSION="4.1 (build $REVISION)"; @@ -2488,9 +2489,13 @@ sub BuildKeyList { #-------------------------------------------------------------------- # MAIN #-------------------------------------------------------------------- +$starttime=time; + if ($ENV{"GATEWAY_INTERFACE"}) { # Run from a browser - #print "Expires: ".(localtime(time()+3600))."\n"; - print("Content-type: text/html\n\n\n"); + # $ExpireDelayInHTTPHeader=3600; + # print "Expires: ".(localtime($starttime+$ExpireDelayInHTTPHeader)."\n"; + print "Content-type: text/html\n"; + print "\n\n"; if ($ENV{"CONTENT_LENGTH"}) { binmode STDIN; read(STDIN, $QueryString, $ENV{'CONTENT_LENGTH'}); @@ -2625,7 +2630,6 @@ if ((! $ENV{"GATEWAY_INTERFACE"}) && (! $SiteConfig)) { } # Get current time (time when AWStats is started) -$starttime=time; ($nowsec,$nowmin,$nowhour,$nowday,$nowmonth,$nowyear,$nowwday) = localtime($starttime); $nowweekofmonth=int($nowday/7); $nowdaymod=$nowday%7; @@ -4272,9 +4276,10 @@ EOF print "
| "; $max_v=$max_p=$max_h=$max_k=1; for (my $ix=1; $ix<=12; $ix++) { my $monthix=$ix; if ($monthix < 10) { $monthix="0$monthix"; } @@ -4302,17 +4307,35 @@ EOF print "\n"; } print " | ||
| "; for (my $ix=1; $ix<=12; $ix++) { - my $monthix=$ix; if ($monthix < 10) { $monthix="0$monthix"; } - print " | "; + my $monthix=($ix<10?"0$ix":"$ix"); + print " | "; if ($ENV{"GATEWAY_INTERFACE"} || !$StaticLinks) { print ""; } print "$monthlib{$monthix}"; if ($ENV{"GATEWAY_INTERFACE"} || !$StaticLinks) { print ""; } print " | \n"; } print "
| $Message[11] | "; +# for (my $ix=1; $ix<=12; $ix++) { my $monthix=($ix<10?"0$ix":"$ix"); print "$MonthUnique{$YearRequired.$monthix} | \n"; } +# print "|
| $Message[10] | "; +# for (my $ix=1; $ix<=12; $ix++) { my $monthix=($ix<10?"0$ix":"$ix"); print "$MonthVisits{$YearRequired.$monthix} | \n"; } +# print "|
| $Message[56] | "; +# for (my $ix=1; $ix<=12; $ix++) { my $monthix=($ix<10?"0$ix":"$ix"); print "$MonthPages{$YearRequired.$monthix} | \n"; } +# print "|
| $Message[57] | "; +# for (my $ix=1; $ix<=12; $ix++) { my $monthix=($ix<10?"0$ix":"$ix"); print "$MonthHits{$YearRequired.$monthix} | \n"; } +# print "