From 8ac3474361a62b58993b4d3a2e23b53aff843532 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 22 Jun 2008 23:05:23 -0400 Subject: [PATCH] dont let the daemon get called from a web server darcs-hash:20080623030523-84dde-d667f0e35b5719cee8496df4b0782dbb4afe5177.gz --- xmppdaemon.php | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.5