[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);
$phpbb_root_path = __DIR__ . '/../';