X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Freportsnapshot.php;h=71f1019ee66f291383bd4ec948dd81ec56c181c4;hb=db9bc253cb3da1af41894f073e8aeebc265c876b;hp=e332d856c007577e0d0a00fc1d4addccf27806fe;hpb=a456ceb47c5019acd8d8766be274eda955a58125;p=quix0rs-gnu-social.git diff --git a/scripts/reportsnapshot.php b/scripts/reportsnapshot.php index e332d856c0..71f1019ee6 100644 --- a/scripts/reportsnapshot.php +++ b/scripts/reportsnapshot.php @@ -1,8 +1,8 @@ #!/usr/bin/env php . */ -# Abort if called from a web server -if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) { - print "This script must be run from the command line\n"; - exit(1); -} +define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); -ini_set("max_execution_time", "0"); -ini_set("max_input_time", "0"); -set_time_limit(0); -mb_internal_encoding('UTF-8'); +$helptext = <<