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