X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fgetpiddir.php;h=8274c37c0f89c01e4ce485bc8f04dec7e9bdbbcc;hb=8b78e01d4c4b9512a7b74efa52fcaf37de0dc6f1;hp=d29c95cb08ccaf1934d1501e9df613e151c1882c;hpb=9014a0a90d9ab5ee408aded51f379fd084fcd82c;p=quix0rs-gnu-social.git diff --git a/scripts/getpiddir.php b/scripts/getpiddir.php index d29c95cb08..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 = <<