mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[ticket/11924] Verify that the script is only run from command line
PHPBB3-11924
This commit is contained in:
parent
35dff79cd8
commit
616574d7ab
@ -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__ . '/../';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user