/** * Loads the database configuration and creates a new connection to the database. */ protected function initDB($bHost = null, $dbUser = null, $dbPassword = null, $dbName = null, $dbCharset = null) { // get configuration $dbHost = $dbUser = $dbPassword = $dbName = $dbCharset = ''; require_once WCF_DIR . 'config.inc.php'; $dbClass = 'LWMySQLDatabase'; // create database connection require_once LW_DIR . 'lib/system/database/' . $dbClass . '.class.php'; self::$dbObj = new $dbClass($dbHost, $dbUser, $dbPassword, $dbName, $dbCharset); }