From: eldy <> Date: Tue, 8 Oct 2002 03:59:47 +0000 (+0000) Subject: Now last update DNS cache file is saved with same permissions than history files... X-Git-Tag: AWSTATS_5_1_BETA~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0357109962df1b507fc307aa17a1a20ded044de5;p=thirdparty%2FAWStats.git Now last update DNS cache file is saved with same permissions than history files so it depends on SaveDatabaseFilesWithPermissionsForEveryone. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index ef1e46c8..5f56998e 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -200,7 +200,7 @@ $TotalSearchEngines = $TotalRefererPages = $TotalDifferentSearchEngines = $Total # ---------- Init arrays -------- use vars qw/ @RobotsSearchIDOrder_list1 @RobotsSearchIDOrder_list2 @RobotsSearchIDOrder_list3 -@BrowsersSearchIDOrder @OSSearchIDOrder @SearchEnginesSearchIDOrder @WordsToCleanSearchUrl +@BrowsersSearchIDOrder @OSSearchIDOrder @SearchEnginesSearchIDOrder @WordsToExtractSearchUrl @WordsToCleanSearchUrl /; use vars qw/ @SessionsRange @HostAliases @AllowAccessFromWebToFollowingAuthenticatedUsers @@ -3228,6 +3228,11 @@ sub Save_DNS_Cache_File { #} } close DNSFILE; + + if ($SaveDatabaseFilesWithPermissionsForEveryone) { + chmod 0666,"$filetosave"; + } + } if ($Debug) { debug(" Saved $nbofelemsaved items into $filetosave in ".(time()-$timetosave)." seconds.",1); } return 0; @@ -4594,7 +4599,7 @@ if ($UpdateStats && $FrameName ne "index" && $FrameName ne "mainleft") { # Updat #------------------------------------------- my $hourrecord=int($dateparts[3]); if ($PageBool) { - # Replace default page name with / only (if increase speed in only 1 value) + # Replace default page name with / only ('if' is to increase speed when only 1 value in @DefaultFile) if (@DefaultFile > 1) { foreach my $elem (@DefaultFile) { if ($field[$pos_url] =~ s/\/$elem$/\//) { last; } } } else { $field[$pos_url] =~ s/\/$DefaultFile[0]$/\//; } @@ -6199,11 +6204,11 @@ EOF else { print "NA\n"; } # Show main indicators print ""; - if ($ShowMonthDayStats =~ /U/i) { print "$Message[11]"; } else { print " "; } - if ($ShowMonthDayStats =~ /V/i) { print "$Message[10]"; } else { print " "; } - if ($ShowMonthDayStats =~ /P/i) { print "$Message[56]"; } else { print " "; } - if ($ShowMonthDayStats =~ /H/i) { print "$Message[57]"; } else { print " "; } - if ($ShowMonthDayStats =~ /B/i) { print "$Message[75]"; } else { print " "; } + if ($ShowMonthDayStats =~ /U/i) { print "$Message[11]"; } else { print " "; } + if ($ShowMonthDayStats =~ /V/i) { print "$Message[10]"; } else { print " "; } + if ($ShowMonthDayStats =~ /P/i) { print "$Message[56]"; } else { print " "; } + if ($ShowMonthDayStats =~ /H/i) { print "$Message[57]"; } else { print " "; } + if ($ShowMonthDayStats =~ /B/i) { print "$Message[75]"; } else { print " "; } print "\n"; print ""; if ($ShowMonthDayStats =~ /U/i) { print "".($MonthRequired eq "year"?"<= $TotalUnique
$Message[129]":"$TotalUnique
 ").""; } else { print " "; }