From: Evan Prodromou Date: Mon, 23 Jun 2008 03:05:23 +0000 (-0400) Subject: dont let the daemon get called from a web server X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8ac3474361a62b58993b4d3a2e23b53aff843532;p=quix0rs-gnu-social.git dont let the daemon get called from a web server darcs-hash:20080623030523-84dde-d667f0e35b5719cee8496df4b0782dbb4afe5177.gz --- diff --git a/xmppdaemon.php b/xmppdaemon.php index 2cf0017544..e11e5f5ad6 100644 --- a/xmppdaemon.php +++ b/xmppdaemon.php @@ -17,6 +17,12 @@ * along with this program. If not, see . */ +# 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', dirname(__FILE__)); define('LACONICA', true);