From: eldy <> Date: Sun, 23 Jul 2006 23:00:30 +0000 (+0000) Subject: Add hidden feature to force LastLine for update process when LastLine is corrupted... X-Git-Tag: AWSTATS_6_6_BETA~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d39f6c662fde603cd6496f280e9af52a7447bb46;p=thirdparty%2FAWStats.git Add hidden feature to force LastLine for update process when LastLine is corrupted inside history files. --- diff --git a/tools/awstats_updateall.pl b/tools/awstats_updateall.pl index ed631085..450f7aec 100644 --- a/tools/awstats_updateall.pl +++ b/tools/awstats_updateall.pl @@ -150,6 +150,10 @@ if (@files) { # Define command line my $command="\"$AwstatsDir/$AwstatsProg\" -update -config=$domain"; $command.=" -configdir=\"$DIRCONFIG\""; + if ($LastLine) + { + $command.=" -lastline=$LastLine"; + } # Run command line print "Running '$command' to update config $domain\n"; my $output = `$command 2>&1`; diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 0e61ef15..39780c69 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -6038,7 +6038,7 @@ if ($lastyearbeforeupdate) { # Warning if lastline in future if ($LastLine > ($nowtime + 20000)) { - warning("WARNING: LastLine parameter in history file is '$LastLine' so in future. May be you need to correct manually the line LastLine in some awstats*.$SiteConfig files."); + warning("WARNING: LastLine parameter in history file is '$LastLine' so in future. May be you need to correct manually the line LastLine in some awstats*.$SiteConfig.conf files."); } # Force LastLine if ($QueryString =~ /lastline=(\d{14})/i)