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

PHPBB3-11924