From: eldy <> Date: Sat, 24 Aug 2013 16:12:48 +0000 (+0000) Subject: - #877 Windows 8 + iOS Support in AWStats X-Git-Tag: AWSTATS_7_3~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=584faaf8a3ff8a2e2ffd97fc80f7979e6e778039;p=thirdparty%2FAWStats.git - #877 Windows 8 + iOS Support in AWStats - Add command line option -version --- diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index cb54d5c1..14306c5e 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -3,6 +3,13 @@ AWStats Changelog $Revision$ - $Author$ - $Date$ +***** 7.3 ***** + +New features: +- #877 Windows 8 + iOS Support in AWStats +- Add command line option -version + + ***** 7.2 ***** New features: diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index c348f3f5..a7bcdac4 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -17227,6 +17227,11 @@ if ( $ENV{'AWSTATS_FORCE_CONFIG'} ) { $SiteConfig = &Sanitize( $ENV{'AWSTATS_FORCE_CONFIG'} ); } +# Display version information +if ( $QueryString =~ /(^|&|&)version/i ) { + print "$PROG $VERSION\n"; + exit 0; +} # Display help information if ( ( !$ENV{'GATEWAY_INTERFACE'} ) && ( !$SiteConfig ) ) { &PrintCLIHelp(); @@ -17664,8 +17669,7 @@ if ( $QueryString =~ /lastline=(\d{14})/i ) { $LastLine = $1; } if ($Debug) { - debug( - "Last year=$lastyearbeforeupdate - Last month=$lastmonthbeforeupdate"); + debug("Last year=$lastyearbeforeupdate - Last month=$lastmonthbeforeupdate"); debug("Last day=$lastdaybeforeupdate - Last hour=$lasthourbeforeupdate"); debug("LastLine=$LastLine"); debug("LastLineNumber=$LastLineNumber");