#-----------------------------------------------------------------------------
-$DIRAWSTATS="/media/DATA/Mes Developpements/awstats/wwwroot/cgi-bin";
-$DIRCONF="/media/DATA/Mes Developpements/awstats/test/awstats/conf";
-$DIRRESULT="/media/DATA/Mes Developpements/awstats/test/awstats/result";
+$DIRAWSTATS="/media/HDDATA1_LD/Mes Developpements/awstats/wwwroot/cgi-bin";
+$DIRCONF="/media/HDDATA1_LD/Mes Developpements/awstats/test/awstats/conf";
+$DIRRESULT="/media/HDDATA1_LD/Mes Developpements/awstats/test/awstats/result";
$TEMP="/temp";
#$PERL="\"c:\\Program files\\cygwin\\bin\\perl.exe\"";
$PERL="perl";
$ShowMenu $ShowMonthStats $ShowDaysOfMonthStats $ShowDaysOfWeekStats
$ShowHoursStats $ShowDomainsStats $ShowHostsStats
$ShowRobotsStats $ShowSessionsStats $ShowPagesStats $ShowFileTypesStats
-$ShowOSStats $ShowBrowsersStats $ShowOriginStats
+$ShowOSStats $ShowBrowsersStats $ShowDownloadsStats $ShowOriginStats
$ShowKeyphrasesStats $ShowKeywordsStats $ShowMiscStats $ShowHTTPErrorsStats
$BuildReportFormat
@ExtraName
#if ($ShowFileTypesStats) { push @OutputList,'filetypes'; } # There is dedicated page for filetypes
if ($ShowOSStats) { push @OutputList,'osdetail'; push @OutputList,'unknownos'; }
if ($ShowBrowsersStats) { push @OutputList,'browserdetail'; push @OutputList,'unknownbrowser'; }
+if ($ShowDownloadsStats) { push @OutputList,'downloads'; }
if ($ShowScreenSizeStats) { push @OutputList,'screensize'; }
if ($ShowOriginStats) { push @OutputList,'refererse'; push @OutputList,'refererpages'; }
if ($ShowKeyphrasesStats) { push @OutputList,'keyphrases'; }
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
if ( $ValidHTTPCodes{ $field[$pos_code] } ) { # Code is valid
if ( int($field[$pos_code]) == 304 && $pos_size>0) { $field[$pos_size] = 0; }
# track downloads
- if (int($field[$pos_code]) == 200 && $MimeHashLib{$extension}[1] eq 'd'){
+ if (int($field[$pos_code]) == 200 && $MimeHashLib{$extension}[1] eq 'd' && $urlwithnoquery !~ /robots.txt$/ ) # We track download if $MimeHashLib{$extension}[1] = 'd'
+ {
$_downloads{$urlwithnoquery}->{'AWSTATS_HITS'}++;
$_downloads{$urlwithnoquery}->{'AWSTATS_SIZE'} += ($pos_size>0 ? int($field[$pos_size]) : 0);
if ($Debug) { debug( " New download detected: '$urlwithnoquery'", 2 ); }