]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed: 29th february 2004 will be correctly handled.
authoreldy <>
Sat, 7 Dec 2002 03:37:27 +0000 (03:37 +0000)
committereldy <>
Sat, 7 Dec 2002 03:37:27 +0000 (03:37 +0000)
wwwroot/cgi-bin/awstats.model.conf
wwwroot/cgi-bin/awstats.pl

index 4db32fba9c252169bac65933c29e23db88f6334d..55612c961c20bd27b5b46737756a04f9dbe43418 100644 (file)
@@ -756,9 +756,9 @@ ShowHTTPErrorsStats=1
 # particular reporting.
 #
 # Stats by domains
-MaxNbOfDomain = 20
+MaxNbOfDomain = 10
 # Stats by hosts
-MaxNbOfHostsShown = 20
+MaxNbOfHostsShown = 10
 MinHitHost    = 1
 # Stats by authenticated users
 MaxNbOfLoginShown = 10
@@ -767,16 +767,16 @@ MinHitLogin   = 1
 MaxNbOfRobotShown = 10
 MinHitRobot   = 1
 # Stats by pages
-MaxNbOfPageShown = 20
+MaxNbOfPageShown = 10
 MinHitFile    = 1
 # Stats by referers
 MaxNbOfRefererShown = 10
 MinHitRefer   = 1
 # Stats for keyphrases
-MaxNbOfKeyphrasesShown = 20
+MaxNbOfKeyphrasesShown = 10
 MinHitKeyphrase = 1
 # Stats for keywords
-MaxNbOfKeywordsShown = 20
+MaxNbOfKeywordsShown = 10
 MinHitKeyword  = 1
 # Stats for emails
 MaxNbOfEMailsShown = 20
index 589642cd7229050d9a7cae6f52223f0d81aac9ae..c219559205ded05456e866636b7d75e303afec1c 100644 (file)
@@ -912,7 +912,9 @@ sub DateIsValid {
                if ($day > 30) { return 0; }
        }
        if ($month==2) {
-               if ($day > 28) { return 0; }
+               my $leapyear=($year%4==0?1:0);          # A leap year every 4 years
+               if ($year%100==0 && $year%400!=0) { $leapyear=0; }      # Except if year is 100x and not 400x
+               if ($day > (28+$leapyear)) { return 0; }
        }
        return 1;
 }