summaryrefslogtreecommitdiff
path: root/plugins/phpbb3/phpbb_bootstrap.php
diff options
context:
space:
mode:
authorChristoph Burschka2012-10-30 15:40:38 +0100
committerChristoph Burschka2012-10-30 15:40:38 +0100
commitb04c17301ec17397f858fb8cca7cb0043c16d4d5 (patch)
tree720e0d076e035f00e300e426b9323f05b77f9e36 /plugins/phpbb3/phpbb_bootstrap.php
parentRefactor to a general, flexible and extensible architecture. (diff)
downloadejabberd-auth-php-b04c17301ec17397f858fb8cca7cb0043c16d4d5.tar.gz
Add phpbb4 plugin (for trunk of phpBB)
Diffstat (limited to 'plugins/phpbb3/phpbb_bootstrap.php')
-rw-r--r--plugins/phpbb3/phpbb_bootstrap.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/plugins/phpbb3/phpbb_bootstrap.php b/plugins/phpbb3/phpbb_bootstrap.php
deleted file mode 100644
index 4ede950..0000000
--- a/plugins/phpbb3/phpbb_bootstrap.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-define('IN_PHPBB', TRUE);
-$phpEx = 'php';
-
-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();