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/phpbb3/phpbb3_bootstrap.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/phpbb3/phpbb3_bootstrap.php') diff --git a/plugins/phpbb3/phpbb3_bootstrap.php b/plugins/phpbb3/phpbb3_bootstrap.php index 4ede950..55c973f 100644 --- a/plugins/phpbb3/phpbb3_bootstrap.php +++ b/plugins/phpbb3/phpbb3_bootstrap.php @@ -1,7 +1,12 @@ .\n"); + exit; +} require($phpbb_root_path . 'includes/startup.' . $phpEx); if (file_exists($phpbb_root_path . 'config.' . $phpEx)) @@ -30,7 +35,7 @@ require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx); // Instantiate some basic classes $user = new noweb_user(); $auth = new auth(); -$db = new $sql_db(); +$db = new $sql_db(); $cache = new cache(); // Connect to DB -- cgit v1.1