$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();
$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");