]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Update databases
authoreldy <>
Wed, 27 May 2009 18:32:22 +0000 (18:32 +0000)
committereldy <>
Wed, 27 May 2009 18:32:22 +0000 (18:32 +0000)
18 files changed:
.settings/org.eclipse.core.resources.prefs
docs/awstats_changelog.txt
wwwroot/cgi-bin/awstats.pl
wwwroot/cgi-bin/lang/awstats-en.txt
wwwroot/cgi-bin/lang/awstats-fr.txt
wwwroot/icon/os/bsddflybsd.png [new file with mode: 0644]
wwwroot/icon/os/bsdkfreebsd.png [new file with mode: 0644]
wwwroot/icon/os/inferno.png [new file with mode: 0644]
wwwroot/icon/os/j2me.png [new file with mode: 0644]
wwwroot/icon/os/linuxandroid.png [new file with mode: 0644]
wwwroot/icon/os/linuxasplinux.png [new file with mode: 0644]
wwwroot/icon/os/linuxpclinuxos.png [new file with mode: 0644]
wwwroot/icon/os/linuxvine.png [new file with mode: 0644]
wwwroot/icon/os/linuxzenwalk.png [new file with mode: 0644]
wwwroot/icon/os/palmos.png [new file with mode: 0644]
wwwroot/icon/os/syllable.png [new file with mode: 0644]
wwwroot/icon/os/win2008.png [new file with mode: 0644]
wwwroot/icon/os/winvista.png [new file with mode: 0644]

index 4f76ee6b13b25073750fa6f6c71de45bbb94c0b1..66dc409132554fa0b343938d0d1fdecdd1daa3f1 100644 (file)
@@ -1,4 +1,4 @@
-#Sat Nov 15 16:19:41 CET 2008
+#Wed May 27 20:00:21 CEST 2009
 eclipse.preferences.version=1
 encoding//wwwroot/cgi-bin/lang/awstats-be.txt=UTF-8
 encoding//wwwroot/cgi-bin/lang/awstats-bg.txt=UTF-8
@@ -7,3 +7,4 @@ encoding//wwwroot/cgi-bin/lang/awstats-sk.txt=UTF-8
 encoding//wwwroot/cgi-bin/lang/tooltips_f/awstats-tt-gr.txt=UTF-8
 encoding//wwwroot/cgi-bin/lang/tooltips_m/awstats-tt-gr.txt=UTF-8
 encoding//wwwroot/cgi-bin/lang/tooltips_w/awstats-tt-gr.txt=UTF-8
+encoding//wwwroot/cgi-bin/lib=ISO-8859-1
index ae86fb35ad0592153f8c5027e876a4d900e9c8cb..2838a8c1d80303480fa42c8384a213c278747dfb 100644 (file)
@@ -10,7 +10,9 @@ New features/improvements:
   default.
 - Enhance security of parameter sanitizing function.
 - Add name of config file used to build data files inside data files header.
-
+- Added details of version for Chrome, Opera, Safari and Konqueror browsers.
+- Update of browsers, robots and search_engines databases.
 Fixes:
 - awstats emmits ton of warnings with new geoipfree - ID: 2794728
 - fix: can detect robots with robots.txt url even if file is not root.
index 7587c9bae6a05409b2a835bd22f33a1055bfa36a..3b557e3046268995ce5cee39d837b1bbbc5581bb 100644 (file)
@@ -352,7 +352,7 @@ use vars qw/
 use vars qw/
   @MiscListOrder %MiscListCalc
   %OSFamily %BrowsersFamily @SessionsRange %SessionsAverage
-  %LangBrowserToLangAwstats %LangAWStatsToFlagAwstats
+  %LangBrowserToLangAwstats %LangAWStatsToFlagAwstats %SafariBuildToVersion
   @HostAliases @AllowAccessFromWebToFollowingAuthenticatedUsers
   @DefaultFile @SkipDNSLookupFor
   @SkipHosts @SkipUserAgents @SkipFiles @SkipReferrers @NotPageFiles
@@ -390,7 +390,7 @@ use vars qw/
                          'linux' => 'Linux',
                          'bsd'   => 'BSD'
 );
-%BrowsersFamily = ( 'msie' => 1, 'firefox' => 2, 'netscape' => 3, 'svn' => 4 );
+%BrowsersFamily=('msie'=>1,'firefox'=>2,'netscape'=>3,'svn'=>4,'opera'=>5,'safari'=>6,'chrome'=>7,'konqueror'=>8);
 @SessionsRange =
   ( '0s-30s', '30s-2mn', '2mn-5mn', '5mn-15mn', '15mn-30mn', '30mn-1h', '1h+' );
 %SessionsAverage = (
@@ -457,6 +457,53 @@ use vars qw/
                                                          'ar' => 'sa',
                                                          'sr' => 'cs'
   );
+%SafariBuildToVersion=(
+'85'=>'1.0',
+'85.5'=>'1.0',
+'85.7'=>'1.0.2',
+'85.8'=>'1.0.3',
+'85.8.1'=>'1.0.3',
+'100'=>'1.1',
+'100.1'=>'1.1.1',
+'125.7'=>'1.2.2',
+'125.8'=>'1.2.2',
+'125.9'=>'1.2.3',
+'125.11'=>'1.2.4',
+'125.12'=>'1.2.4',
+'312'=>'1.3',
+'312.3'=>'1.3.1',
+'312.3.1'=>'1.3.1',
+'312.5'=>'1.3.2',
+'312.6'=>'1.3.2',
+'412'=>'2.0',
+'412.2'=>'2.0',
+'412.2.2'=>'2.0',
+'412.5'=>'2.0.1',
+'413'=>'2.0.1',
+'416.12'=>'2.0.2',
+'416.13'=>'2.0.2',
+'417.8'=>'2.0.3',
+'417.9.2'=>'2.0.3',
+'417.9.3'=>'2.0.3',
+'419.3'=>'2.0.4',
+'522.11.3'=>'3.0',
+'522.12'=>'3.0.2',
+'523.10'=>'3.0.4',
+'523.12'=>'3.0.4',
+'525.13'=>'3.1',
+'525.17'=>'3.1.1',
+'525.20'=>'3.1.1',
+'525.20.1'=>'3.1.2',
+'525.21'=>'3.1.2',
+'525.22'=>'3.1.2',
+'525.26'=>'3.2',
+'525.26.13'=>'3.2',
+'525.27'=>'3.2.1',
+'525.27.1'=>'3.2.1',
+'526.11.2'=>'4.0',
+'528.1'=>'4.0',
+'528.16'=>'4.0'
+);  
 @HostAliases = @AllowAccessFromWebToFollowingAuthenticatedUsers = ();
 @DefaultFile = @SkipDNSLookupFor = ();
 @SkipHosts = @SkipUserAgents = @NotPageFiles = @SkipFiles = @SkipReferrers = ();
@@ -717,7 +764,11 @@ use vars qw/ @Message /;
        'Created by',
        'plugins',
        'Regions',
-       'Cities'
+       'Cities',
+       'Opera versions',
+       'Safari versions',
+       'Chrome versions',
+       'Konqueror versions'    
 );
 
 #------------------------------------------------------------------------------
@@ -2151,17 +2202,7 @@ sub Read_Ref_Data {
                          . " is up to date."
                );
        }
-       if ( ( scalar keys %BrowsersHashIDLib )
-                && @BrowsersSearchIDOrder != ( scalar keys %BrowsersHashIDLib ) - 4 )
-       {
-               error("Not same number of records of BrowsersSearchIDOrder ("
-                       . (@BrowsersSearchIDOrder)
-                       . " entries) and BrowsersHashIDLib ("
-                       . ( ( scalar keys %BrowsersHashIDLib ) - 4 )
-                       . " entries without msie,netscape,firefox,svn) in Browsers database. May be you updated AWStats without updating browsers.pm file or you made changed into browsers.pm not correctly. Check your file "
-                       . $FilePath{"browsers.pm"}
-                       . " is up to date." );
-       }
+       if ((scalar keys %BrowsersHashIDLib) && @BrowsersSearchIDOrder != (scalar keys %BrowsersHashIDLib) - 4) { error("Not same number of records of BrowsersSearchIDOrder (".(@BrowsersSearchIDOrder)." entries) and BrowsersHashIDLib (".((scalar keys %BrowsersHashIDLib) - 4)." entries without msie,netscape,firefox,svn,opera,safari,chrome,konqueror) in Browsers database. May be you updated AWStats without updating browsers.pm file or you made changed into browsers.pm not correctly. Check your file ".$FilePath{"browsers.pm"}." is up to date."); }
        if (
                 ( scalar keys %RobotsHashIDLib )
                 && ( @RobotsSearchIDOrder_list1 + @RobotsSearchIDOrder_list2 +
@@ -10409,10 +10450,16 @@ if ( $UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft' )
        my $regvermsie        = qr/msie([+_ ]|)([\d\.]*)/i;
        my $regvernetscape    = qr/netscape.?\/([\d\.]*)/i;
        my $regverfirefox     = qr/firefox\/([\d\.]*)/i;
+       my $regveropera       = qr/opera\/([\d\.]*)/i;  
+       my $regversafari      = qr/safari\/([\d\.]*)/i; 
+       my $regverchrome      = qr/chrome\/([\d\.]*)/i;
+    my $regverkonqueror   = qr/konqueror\/([\d\.]*)/i;
        my $regversvn         = qr/svn\/([\d\.]*)/i;
        my $regvermozilla     = qr/mozilla(\/|)([\d\.]*)/i;
        my $regnotie          = qr/webtv|omniweb|opera/i;
-       my $regnotnetscape    = qr/gecko|compatible|opera|galeon|safari/i;
+       my $regnotnetscape    = qr/gecko|compatible|opera|galeon|safari|charon/i;
+    my $regnotfirefox     = qr/flock/i;
+       my $regnotsafari      = qr/arora|chrome|shiira/i;
        my $regreferer        = qr/^(\w+):\/\/([^\/:]+)(:\d+|)/;
        my $regreferernoquery = qr/^([^$URLQuerySeparators]+)/;
        my $reglocal          = qr/^(www\.|)$sitewithoutwww/i;
@@ -11911,8 +11958,29 @@ if ( $UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft' )
                                        if ( !$uabrowser ) {
                                                my $found = 1;
 
+                                               # Opera ?
+                                               if ($UserAgent =~ /$regveropera/o) {
+                                                       $_browser_h{"opera$1"}++;
+                                                       $TmpBrowser{$UserAgent}="opera$1";
+                                               }
+                                               # Chrome ?
+                                               elsif ($UserAgent =~ /$regverchrome/o) {
+                                                       $_browser_h{"chrome$1"}++;
+                                                       $TmpBrowser{$UserAgent}="chrome$1";
+                                               }
+                                               # Safari ?
+                                               elsif ($UserAgent =~ /$regversafari/o && $UserAgent !~ /$regnotsafari/o) {
+                                                       my $safariver = $SafariBuildToVersion{$1};
+                                                       $_browser_h{"safari$safariver"}++;
+                                                       $TmpBrowser{$UserAgent}="safari$safariver";
+                                               }
+                                               # Konqueror ?
+                                               elsif ($UserAgent =~ /$regverkonqueror/o) {
+                                                       $_browser_h{"konqueror$1"}++;
+                                                       $TmpBrowser{$UserAgent}="konqueror$1";
+                                               }
                                                # IE ?
-                                               if (    $UserAgent =~ /$regvermsie/o
+                                               elsif (    $UserAgent =~ /$regvermsie/o
                                                         && $UserAgent !~ /$regnotie/o )
                                                {
                                                        $_browser_h{"msie$2"}++;
@@ -11920,7 +11988,7 @@ if ( $UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft' )
                                                }
 
                                                # Firefox ?
-                                               elsif ( $UserAgent =~ /$regverfirefox/o ) {
+                                               elsif ( $UserAgent =~ /$regverfirefox/o && $UserAgent !~ /$regnotfirefox/o) {
                                                        $_browser_h{"firefox$1"}++;
                                                        $TmpBrowser{$UserAgent} = "firefox$1";
                                                }
index 3ea038dbc05cbc57a32993a72e55874ea6f02343..9e106991135ea62b6a32f955aed9421051e96bc0 100644 (file)
@@ -173,4 +173,8 @@ message168=Javascript disabled
 message169=Created by
 message170=plugins
 message171=Regions
-message172=Cities
\ No newline at end of file
+message172=Cities
+message173=Opera versions
+message174=Safari versions
+message175=Chrome versions
+message176=Konqueror versions
\ No newline at end of file
index e661e0a8b447998e0b4c6221ffde60ff685a6999..579489c3e576eef29bc3d2a6be8260de3251e48f 100644 (file)
@@ -174,3 +174,8 @@ message169=Généré par
 message170=plugins
 message171=Regions
 message172=Villes
+message173=Versions Opera
+message174=Versions Safari
+message175=Versions Chrome
+message176=Versions Konqueror  
+
diff --git a/wwwroot/icon/os/bsddflybsd.png b/wwwroot/icon/os/bsddflybsd.png
new file mode 100644 (file)
index 0000000..8cb6d85
Binary files /dev/null and b/wwwroot/icon/os/bsddflybsd.png differ
diff --git a/wwwroot/icon/os/bsdkfreebsd.png b/wwwroot/icon/os/bsdkfreebsd.png
new file mode 100644 (file)
index 0000000..7c3911e
Binary files /dev/null and b/wwwroot/icon/os/bsdkfreebsd.png differ
diff --git a/wwwroot/icon/os/inferno.png b/wwwroot/icon/os/inferno.png
new file mode 100644 (file)
index 0000000..a7be5aa
Binary files /dev/null and b/wwwroot/icon/os/inferno.png differ
diff --git a/wwwroot/icon/os/j2me.png b/wwwroot/icon/os/j2me.png
new file mode 100644 (file)
index 0000000..768d4c6
Binary files /dev/null and b/wwwroot/icon/os/j2me.png differ
diff --git a/wwwroot/icon/os/linuxandroid.png b/wwwroot/icon/os/linuxandroid.png
new file mode 100644 (file)
index 0000000..e2bf55e
Binary files /dev/null and b/wwwroot/icon/os/linuxandroid.png differ
diff --git a/wwwroot/icon/os/linuxasplinux.png b/wwwroot/icon/os/linuxasplinux.png
new file mode 100644 (file)
index 0000000..8506015
Binary files /dev/null and b/wwwroot/icon/os/linuxasplinux.png differ
diff --git a/wwwroot/icon/os/linuxpclinuxos.png b/wwwroot/icon/os/linuxpclinuxos.png
new file mode 100644 (file)
index 0000000..5d4dcbc
Binary files /dev/null and b/wwwroot/icon/os/linuxpclinuxos.png differ
diff --git a/wwwroot/icon/os/linuxvine.png b/wwwroot/icon/os/linuxvine.png
new file mode 100644 (file)
index 0000000..aa7f19e
Binary files /dev/null and b/wwwroot/icon/os/linuxvine.png differ
diff --git a/wwwroot/icon/os/linuxzenwalk.png b/wwwroot/icon/os/linuxzenwalk.png
new file mode 100644 (file)
index 0000000..cd2220e
Binary files /dev/null and b/wwwroot/icon/os/linuxzenwalk.png differ
diff --git a/wwwroot/icon/os/palmos.png b/wwwroot/icon/os/palmos.png
new file mode 100644 (file)
index 0000000..08325fa
Binary files /dev/null and b/wwwroot/icon/os/palmos.png differ
diff --git a/wwwroot/icon/os/syllable.png b/wwwroot/icon/os/syllable.png
new file mode 100644 (file)
index 0000000..520b452
Binary files /dev/null and b/wwwroot/icon/os/syllable.png differ
diff --git a/wwwroot/icon/os/win2008.png b/wwwroot/icon/os/win2008.png
new file mode 100644 (file)
index 0000000..63e4b5c
Binary files /dev/null and b/wwwroot/icon/os/win2008.png differ
diff --git a/wwwroot/icon/os/winvista.png b/wwwroot/icon/os/winvista.png
new file mode 100644 (file)
index 0000000..aef452b
Binary files /dev/null and b/wwwroot/icon/os/winvista.png differ