X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fgetpiddir.php;h=8274c37c0f89c01e4ce485bc8f04dec7e9bdbbcc;hb=ac8a4a7e56cc2535b0d1c30e4619db5994a1ecd4;hp=b4dda2254cef080d3bccf150d6e2c836ccaf23aa;hpb=e52be4183d8054caeab606092814342bf092d6d5;p=quix0rs-gnu-social.git diff --git a/scripts/getpiddir.php b/scripts/getpiddir.php index b4dda2254c..8274c37c0f 100755 --- a/scripts/getpiddir.php +++ b/scripts/getpiddir.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(); -} - define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); -define('LACONICA', true); -require_once(INSTALLDIR . '/lib/common.php'); +$helptext = <<