X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fgetpiddir.php;h=9927cc6d95b07a9f4a831b204dde44a6ce5b088b;hb=ec83890bc242650b169a524c373f488bb652265c;hp=b4dda2254cef080d3bccf150d6e2c836ccaf23aa;hpb=29146a13f295a13a4ee4470cffaaa7fde6858689;p=quix0rs-gnu-social.git diff --git a/scripts/getpiddir.php b/scripts/getpiddir.php index b4dda2254c..9927cc6d95 100755 --- a/scripts/getpiddir.php +++ b/scripts/getpiddir.php @@ -2,7 +2,7 @@ . */ -# 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 = <<