From: eldy <> Date: Wed, 25 Sep 2002 14:20:06 +0000 (+0000) Subject: Migrate is possible from a browser. X-Git-Tag: AWSTATS_5_0_RELEASE~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15ff3671443e99ba13b7070d1844e1da2e2c1c03;p=thirdparty%2FAWStats.git Migrate is possible from a browser. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 5ac9ad05..cfb677d1 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -1639,8 +1639,8 @@ sub Read_History_With_TmpUpdate { # Show migrate warning for backward compatibility if ($versionnum < 5000 && ! $MigrateStats && ! $BadFormatWarning{$year.$month}) { $BadFormatWarning{$year.$month}=1; - my $message="Warning: Data file '$filetoread' has an old history file format (version $versionnum).\nYou should upgrade it from the command line: $PROG.$Extension -migrate=\"$filetoread\""; - if ($ENV{"GATEWAY_INTERFACE"} && $AllowToUpdateStatsFromBrowser) { $message.="\nor from your browser launch URL: http://".$ENV{"SERVER_NAME"}.$ENV{"SCRIPT_NAME"}."?migrate=$filetoread"; } + my $message="Warning: Data file '$filetoread' has an old history file format (version $versionnum). You should upgrade it...\nFrom command line: $PROG.$Extension -migrate=\"$filetoread\""; + if ($ENV{"GATEWAY_INTERFACE"} && $AllowToUpdateStatsFromBrowser) { $message.="\nFrom your browser with URL: http://".$ENV{"SERVER_NAME"}.$ENV{"SCRIPT_NAME"}."?migrate=$filetoread"; } warning("$message"); } if (! ($versionnum < 5000) && $MigrateStats && ! $BadFormatWarning{$year.$month}) {