summaryrefslogtreecommitdiff
path: root/plugins/phpbb4/phpbb4_bootstrap.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/phpbb4/phpbb4_bootstrap.php')
-rw-r--r--plugins/phpbb4/phpbb4_bootstrap.php5
1 files changed, 5 insertions, 0 deletions
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';