X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fgetpiddir.php;h=00e845f80db821a8ccd1a2008b2ff3a078cf4968;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=4f5704249319b018beee7be4dcdc613fe0997621;hpb=a7c85bebd5be9ea019a8c80d74730d7eb28d4651;p=quix0rs-gnu-social.git diff --git a/scripts/getpiddir.php b/scripts/getpiddir.php index 4f57042493..00e845f80d 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 = <<