]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Counts javascript disabled browsers (A new MiscTracker feature).
authoreldy <>
Wed, 14 Jul 2004 00:29:53 +0000 (00:29 +0000)
committereldy <>
Wed, 14 Jul 2004 00:29:53 +0000 (00:29 +0000)
docs/awstats_changelog.txt
wwwroot/cgi-bin/awstats.model.conf
wwwroot/cgi-bin/awstats.pl
wwwroot/cgi-bin/lang/awstats-en.txt
wwwroot/cgi-bin/lang/awstats-fr.txt
wwwroot/js/awstats_misc_tracker.js

index ad89ae8666c6d935a276682bdd449edce527f2a1..6ba7252e1c2644c80f0dea5336452d4eb006e975 100644 (file)
@@ -10,11 +10,16 @@ New features/improvements:
 - Allow plugins to add charts with its own way to compile data inside\r
 the update process.\r
 - maillogconvert.pl: Support postfix 2.1 that change its log\r
-format using NOQUEUE string instead of a number for mails rejected\r
-before being queued.\r
+format using NOQUEUE string instead of a number for mails that are\r
+rejected before being queued.\r
 - Added support for plugin geoip_region_maxmind (plugin not included\r
 in default distrib. You can download it from AWStats web site).\r
 - Little speed improvments.\r
+- Counts javascript disabled browsers (A new MiscTracker feature).\r
+- When a direct access to last line is successfull, awstats is directly\r
+in mode "NewLine". No need to find a more recent record for this. This\r
+means the NotSortedRecordTolerance works even between end and start\r
+of updates.\r
 \r
 Fixes:\r
 - Fix not recognized %time3 tag in LogFormat. This tag allows to process\r
@@ -22,12 +27,23 @@ all FTP xferlog file format.
 - Fix bad html generated with buildpdf option.\r
 - maillogconvert.pl: Added patch to work correctly with sendmail\r
 when recipient is redirected through a pipe.\r
+- Fix Bug 971129: Bug in regexp handling for | in ExtraSections\r
+Now for OR in ExtraSectionCondition you must use double pipe.\r
+- Fix Bug 985977: Failed to rename temp history file if contains special\r
+char like +\r
+- Fix Bug 975059: Timezone Plugin Runtime Error\r
+- Fix Bug 982803: Bad display in Netscape 4.75 with Awstats version 6.1\r
+- Fix Bug 983994: Tooltips aren't shown.\r
+- Some fix to have correct flag for lang with code lang different of\r
+country flag.\r
 \r
 Other/Documentation:\r
 - Better log messages in plugins.\r
 - Updated documentation.\r
 - Renamed configure.pl into awstats_configure.pl.\r
 - Reduce code size.\r
+- The NOTSORTEDRECORDTOLERANCE has been increased to 2 hours to be sure to\r
+have no problem for users that change their hour by one.\r
 \r
 \r
 6.1\r
index f9305bab0e1ec8e91b1ceb8bfa046bb92ef250bc..8038761881bf67f908cf74a7b3ba9ee5a3ba8eb4 100644 (file)
@@ -736,10 +736,11 @@ DecodeUA=0
 
 
 # MiscTrackerUrl can be used to make AWStats able to detect some miscellanous
-# things, that can not be tracked on other way like:
+# things, that can not be tracked on other way, like:
+# - Javascript disabled
+# - Java enabled
 # - Screen size
 # - Color depth
-# - Java enabled
 # - Macromedia Director plugin
 # - Macromedia Shockwave plugin
 # - Realplayer G2 plugin
@@ -748,15 +749,18 @@ DecodeUA=0
 # - Acrobat PDF plugin
 # To enable all this features, you must copy the awstats_misc_tracker.js file
 # into a /js/ directory stored in your web document root and add the following
-# HTML code at the end of your index page (before </BODY>) :
+# HTML code at the end of your index page (but before </BODY>) :
+#
 # <script language=javascript src="/js/awstats_misc_tracker.js"></script>
-# If code is not added in index page, all this detection capabilities will be
+# <noscript><img src="/js/awstats_misc_tracker.js?nojs=y" height=0 width=0 border=0 style="display: none"></noscript>
+#
+# If code is not added in index page, all those detection capabilities will be
 # disabled. You must also check that ShowScreenSizeStats and ShowMiscStats
-# parameters are set to 1 to make results appear in report page.
+# parameters are set to 1 to make results appear in AWStats report page.
 # If you want to use another directory than /js/, you must also change the
 # awstatsmisctrackerurl variable into the awstats_misc_tracker.js file.
 # Change : Effective for new updates only.
-# Possible value: Full URL of javascript tracker file added in HTML code
+# Possible value: URL of javascript tracker file added in your HTML code.
 # Default: "/js/awstats_misc_tracker.js"
 #
 MiscTrackerUrl="/js/awstats_misc_tracker.js"
@@ -936,6 +940,9 @@ ShowBrowsersStats=1
 # Show screen size chart
 # Default: 0 (If set to 1, see also MiscTrackerUrl), Possible codes: None
 ShowScreenSizeStats=0
+# Show window size chart (Following parameter is not yet used)\r
+# Default: 0 (This parameter is not yet used)\r
+ShowWindowSizeStats=0\r
 # Show origin chart
 # Default: PH, Possible codes: PH
 ShowOriginStats=PH
@@ -946,7 +953,7 @@ ShowKeyphrasesStats=1
 # Default: 1, Possible codes: None
 ShowKeywordsStats=1
 # Show misc chart
-# Default: a (See also MiscTrackerUrl parameter), Possible codes: ajdfrqwp
+# Default: a (See also MiscTrackerUrl parameter), Possible codes: anjdfrqwp
 ShowMiscStats=a
 # Show http errors chart
 # Default: 1, Possible codes: None
@@ -1010,6 +1017,9 @@ MinHitBrowser = 1
 # Stats by screen size
 MaxNbOfScreenSizesShown = 5
 MinHitScreenSize = 1
+# Stats by window size (following 2 parameters are not yet used)\r
+MaxNbOfWindowSizesShown = 5\r
+MinHitWindowSize = 1\r
 # Stats by referers
 MaxNbOfRefererShown = 10
 MinHitRefer   = 1
index fb08ec71291345d45d6e874de2d824c130dbf8f5..cb21fd8f84bc6f96e113a9a58691d8c7d65c5f68 100644 (file)
@@ -239,8 +239,8 @@ use vars qw/
 @ExtraAddAverageRow @ExtraAddSumRow
 @PluginsToLoad 
 /;
-@MiscListOrder=('AddToFavourites','JavaEnabled','DirectorSupport','FlashSupport','RealPlayerSupport','QuickTimeSupport','WindowsMediaPlayerSupport','PDFSupport');
-%MiscListCalc=('TotalMisc'=>'','AddToFavourites'=>'u','JavaEnabled'=>'hm','DirectorSupport'=>'hm','FlashSupport'=>'hm','RealPlayerSupport'=>'hm','QuickTimeSupport'=>'hm','WindowsMediaPlayerSupport'=>'hm','PDFSupport'=>'hm');
+@MiscListOrder=('AddToFavourites','JavascriptDisabled','JavaEnabled','DirectorSupport','FlashSupport','RealPlayerSupport','QuickTimeSupport','WindowsMediaPlayerSupport','PDFSupport');
+%MiscListCalc=('TotalMisc'=>'','AddToFavourites'=>'u','JavascriptDisabled'=>'hm','JavaEnabled'=>'hm','DirectorSupport'=>'hm','FlashSupport'=>'hm','RealPlayerSupport'=>'hm','QuickTimeSupport'=>'hm','WindowsMediaPlayerSupport'=>'hm','PDFSupport'=>'hm');
 @OSFamily=('win','mac');
 #%BrowsersFamily=('msie'=>1,'netscape'=>2,'mozilla'=>3);
 %BrowsersFamily=('msie'=>1,'netscape'=>2);
@@ -515,7 +515,8 @@ use vars qw/ @Message /;
 'different worms',
 'Mails successfully sent',
 'Mails failed/refused',
-'Sensitive targets'
+'Sensitive targets',
+'Javascript disabled'
 );
 
 
@@ -1617,7 +1618,7 @@ sub Check_Config {
        if ($ShowKeyphrasesStats !~ /[01]/)             { $ShowKeyphrasesStats=1; }
        if ($ShowKeywordsStats !~ /[01]/)               { $ShowKeywordsStats=1; }
        if ($ShowClusterStats !~ /[01PHB]/)             { $ShowClusterStats=0; }
-       if ($ShowMiscStats !~ /[01ajdfrqwp]/)               { $ShowMiscStats='a'; }
+       if ($ShowMiscStats !~ /[01anjdfrqwp]/)              { $ShowMiscStats='a'; }
        if ($ShowHTTPErrorsStats !~ /[01]/)             { $ShowHTTPErrorsStats=1; }
        if ($ShowSMTPErrorsStats !~ /[01]/)             { $ShowSMTPErrorsStats=0; }
        if ($AddDataArrayMonthStats !~ /[01]/)          { $AddDataArrayMonthStats=1; }
@@ -1683,7 +1684,7 @@ sub Check_Config {
        if ($ShowFileTypesStats eq '1')         { $ShowFileTypesStats = 'HB'; }
        if ($ShowOriginStats eq '1')            { $ShowOriginStats = 'PH'; }
        if ($ShowClusterStats eq '1')           { $ShowClusterStats = 'PHB'; }
-       if ($ShowMiscStats eq '1')                      { $ShowMiscStats = 'ajdfrqwp'; }
+       if ($ShowMiscStats eq '1')                      { $ShowMiscStats = 'anjdfrqwp'; }
 
        # Convert extra sections data into @ExtraConditionType, @ExtraConditionTypeVal...
        foreach my $extranum (1..@ExtraName-1) {
@@ -6228,6 +6229,7 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') {  # Updat
                        foreach (split(/&/,$standalonequery)) {
                                if ($_ =~ /^screen=(\d+)x(\d+)/i)       { $foundparam++; $_screensize_h{"$1x$2"}++; next; }
                                #if ($_ =~ /cdi=(\d+)/i)                        { $foundparam++; $_screendepth_h{"$1"}++; next; }
+                               if ($_ =~ /^nojs=(\w+)/i)                       { $foundparam++; if ($1 eq 'y')    { $_misc_h{"JavaScriptDisabled"}++; } next; }
                                if ($_ =~ /^java=(\w+)/i)                       { $foundparam++; if ($1 eq 'true') { $_misc_h{"JavaEnabled"}++; } next; }
                                if ($_ =~ /^shk=(\w+)/i)                        { $foundparam++; if ($1 eq 'y')    { $_misc_h{"DirectorSupport"}++; } next; }
                                if ($_ =~ /^fla=(\w+)/i)                        { $foundparam++; if ($1 eq 'y')    { $_misc_h{"FlashSupport"}++; } next; }
@@ -9860,7 +9862,7 @@ if (scalar keys %HTMLOutput) {
                        print "<th width=\"100\">&nbsp;</th>";
                        print "<th width=\"100\">&nbsp;</th>";
                        print "</tr>\n";
-                       my %label=('AddToFavourites'=>$Message[137],'JavaEnabled'=>$Message[140],'DirectorSupport'=>$Message[141],
+                       my %label=('AddToFavourites'=>$Message[137],'JavaScriptDisabled'=>$Message[168],'JavaEnabled'=>$Message[140],'DirectorSupport'=>$Message[141],
                        'FlashSupport'=>$Message[142],'RealPlayerSupport'=>$Message[143],'QuickTimeSupport'=>$Message[144],
                        'WindowsMediaPlayerSupport'=>$Message[145],'PDFSupport'=>$Message[146]);
                        foreach my $key (@MiscListOrder) {
index 8d36575281fb6fcafb4f5abfef3cbd2bda0be29c..ee3845991b9d2ad57598b0c31fdc1871beb8dff5 100644 (file)
@@ -167,4 +167,5 @@ message163=Worms
 message164=different worms
 message165=Mails successfully sent
 message166=Mails failed/refused
-message167=Sensitive targets
\ No newline at end of file
+message167=Sensitive targets
+message168=Javascript disabled
\ No newline at end of file
index 63f0cd37ed148752b10b8a64bff5f15576441103..49accdf28ba73285649d3a9f1a268856d6bbbda2 100644 (file)
@@ -168,3 +168,4 @@ message164=vers differents
 message165=Mails transférés
 message166=Mails en échec/refusés
 message167=Cibles sensibles
+message168=Javascript désactivé
\ No newline at end of file
index f30570d60f85738d780f68957f9721c4eba413d5..398f6da5d6b836019971a590826b3b45ed707043 100644 (file)
@@ -2,7 +2,9 @@
 //-------------------------------------------------------------------
 // You can add this file onto some of your web pages (main home page can\r
 // be enough) by adding the following HTML code to your page body:\r
+//
 // <script language=javascript src="/js/awstats_misc_tracker.js"></script>\r
+// <noscript><img src="/js/awstats_misc_tracker.js?nojs=y" height=0 width=0 border=0 style="display: none"></noscript>\r
 //\r
 // * This must be added after the <body> tag, not placed within the\r
 //   <head> tags, or the resulting tracking <img> tag will not be handled\r