aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-10-26 22:53:40 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-10-26 22:53:40 +0200
commit616574d7ab15ea8c43a2c20d6871702d42c3696d (patch)
treeabae581a300e5d670ba3a6e58e4bedd860267293 /phpBB/develop
parent35dff79cd823e208989611b34ef76b4f1978f8b3 (diff)
downloadforums-616574d7ab15ea8c43a2c20d6871702d42c3696d.tar
forums-616574d7ab15ea8c43a2c20d6871702d42c3696d.tar.gz
forums-616574d7ab15ea8c43a2c20d6871702d42c3696d.tar.bz2
forums-616574d7ab15ea8c43a2c20d6871702d42c3696d.tar.xz
forums-616574d7ab15ea8c43a2c20d6871702d42c3696d.zip
[ticket/11924] Verify that the script is only run from command line
PHPBB3-11924
Diffstat (limited to 'phpBB/develop')
-rw-r--r--phpBB/develop/export_events_for_wiki.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/develop/export_events_for_wiki.php b/phpBB/develop/export_events_for_wiki.php
index d0ea9db285..b276b4c5fa 100644
--- a/phpBB/develop/export_events_for_wiki.php
+++ b/phpBB/develop/export_events_for_wiki.php
@@ -6,6 +6,11 @@
*
*/
+if (php_sapi_name() != 'cli')
+{
+ die("This program must be run from the command line.\n");
+}
+
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$phpbb_root_path = __DIR__ . '/../';