From c92b1bd7538ed0eb18bdb3a1401fe4d0010bfdeb Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Fri, 2 Nov 2012 23:19:12 +0100 Subject: Renaming phpbb versions properly. --- plugins/phpbb30/phpbb30_bootstrap.php | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 plugins/phpbb30/phpbb30_bootstrap.php (limited to 'plugins/phpbb30/phpbb30_bootstrap.php') diff --git a/plugins/phpbb30/phpbb30_bootstrap.php b/plugins/phpbb30/phpbb30_bootstrap.php new file mode 100644 index 0000000..55c973f --- /dev/null +++ b/plugins/phpbb30/phpbb30_bootstrap.php @@ -0,0 +1,45 @@ +.\n"); + exit; +} +require($phpbb_root_path . 'includes/startup.' . $phpEx); + +if (file_exists($phpbb_root_path . 'config.' . $phpEx)) +{ + require($phpbb_root_path . 'config.' . $phpEx); +} + +if (!defined('PHPBB_INSTALLED')) +{ + file_put_contents('php://stderr', "phpBB needs to be installed first.\n"); + exit; +} + +// Include files +require(__DIR__ . '/noweb_user.php'); +require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.' . $phpEx); +require($phpbb_root_path . 'includes/cache.' . $phpEx); +require($phpbb_root_path . 'includes/auth.' . $phpEx); +require($phpbb_root_path . 'includes/functions.' . $phpEx); +require($phpbb_root_path . 'includes/functions_content.' . $phpEx); + +require($phpbb_root_path . 'includes/constants.' . $phpEx); +require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx); +require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx); + +// Instantiate some basic classes +$user = new noweb_user(); +$auth = new auth(); +$db = new $sql_db(); +$cache = new cache(); + +// Connect to DB +$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, defined('PHPBB_DB_NEW_LINK') ? PHPBB_DB_NEW_LINK : false); +// We do not need this any longer, unset for safety purposes +unset($dbpasswd); +$config = $cache->obtain_config(); -- cgit v1.1