]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
- #877 Windows 8 + iOS Support in AWStats
authoreldy <>
Sat, 24 Aug 2013 16:12:48 +0000 (16:12 +0000)
committereldy <>
Sat, 24 Aug 2013 16:12:48 +0000 (16:12 +0000)
- Add command line option -version

docs/awstats_changelog.txt
wwwroot/cgi-bin/awstats.pl

index cb54d5c14aa08c7debd5a95672aa9b7b32468c70..14306c5ee61f26a27aae690a0a9a69d022d6f0ac 100644 (file)
@@ -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:
index c348f3f5284dca54c49da58a9fbf6763562aed2a..a7bcdac4395d8085b8f2c76223b92d76cc514e9f 100644 (file)
@@ -17227,6 +17227,11 @@ if ( $ENV{'AWSTATS_FORCE_CONFIG'} ) {
        $SiteConfig = &Sanitize( $ENV{'AWSTATS_FORCE_CONFIG'} );
 }
 
+# Display version information
+if ( $QueryString =~ /(^|&|&amp;)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");