diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-10-26 22:53:40 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-10-26 22:53:40 +0200 |
commit | 616574d7ab15ea8c43a2c20d6871702d42c3696d (patch) | |
tree | abae581a300e5d670ba3a6e58e4bedd860267293 /phpBB/develop | |
parent | 35dff79cd823e208989611b34ef76b4f1978f8b3 (diff) | |
download | forums-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.php | 5 |
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__ . '/../'; |