mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/11924] Verify that the script is only run from command line
PHPBB3-11924
This commit is contained in:
parent
35dff79cd8
commit
616574d7ab
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue