From 1a1ec38c95a25143bea1e3da38c65a60437d7883 Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Thu, 1 Nov 2012 00:01:08 +0100 Subject: Huge overhaul to deal with the global variables more cleanly. Avoid globals wherever possible, to avoid collisions with CMS systems. --- plugins/phpbb4/phpbb4_bootstrap.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/phpbb4/phpbb4_bootstrap.php') diff --git a/plugins/phpbb4/phpbb4_bootstrap.php b/plugins/phpbb4/phpbb4_bootstrap.php index 3f7dee5..740f230 100644 --- a/plugins/phpbb4/phpbb4_bootstrap.php +++ b/plugins/phpbb4/phpbb4_bootstrap.php @@ -6,6 +6,11 @@ use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; +if (!file_exists($phpbb_root_path . 'includes/startup.' . $phpEx)) { + file_put_contents('php://stderr', "phpBB not found at <{$phpbb_root_path}>.\n"); + exit; +} + require($phpbb_root_path . 'includes/startup.' . $phpEx); require_once __DIR__ . '/noweb_user.php'; -- cgit v1.1