1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

[ticket/11924] Verify that the script is only run from command line

PHPBB3-11924
This commit is contained in:
Joas Schilling 2013-10-26 22:53:40 +02:00
parent 35dff79cd8
commit 616574d7ab

View File

@ -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); $phpEx = substr(strrchr(__FILE__, '.'), 1);
$phpbb_root_path = __DIR__ . '/../'; $phpbb_root_path = __DIR__ . '/../';