From 616574d7ab15ea8c43a2c20d6871702d42c3696d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 26 Oct 2013 22:53:40 +0200 Subject: [PATCH] [ticket/11924] Verify that the script is only run from command line PHPBB3-11924 --- phpBB/develop/export_events_for_wiki.php | 5 +++++ 1 file changed, 5 insertions(+) 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__ . '/../';