diff options
Diffstat (limited to 'xmppdaemon.php')
-rw-r--r-- | xmppdaemon.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmppdaemon.php b/xmppdaemon.php index 2cf001754..e11e5f5ad 100644 --- a/xmppdaemon.php +++ b/xmppdaemon.php @@ -17,6 +17,12 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +# 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); |