[phpMP-CVS] CVS: phpMP/core main.php,1.6,1.7
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2003-09-14 22:11:07
|
Update of /cvsroot/phpmp/phpMP/core In directory sc8-pr-cvs1:/tmp/cvs-serv8352/core Modified Files: main.php Log Message: Switching over to the new config.php layout as well as moving to the new DBAL. Index: main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/core/main.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** main.php 14 Sep 2003 21:58:04 -0000 1.6 --- main.php 14 Sep 2003 22:11:04 -0000 1.7 *************** *** 80,86 **** $Debug = new Debug(); ! include_once( C_PHPMP_ROOT . CORE_DIR . 'dba/' . DB_TYPE . '.php' ); ! $DB = new sql_db(); $DB->connect(); define('DB_CONFIG_TABLE', DB_NAME . '.' . DB_TABLE_PREFIX . 'config'); --- 80,88 ---- $Debug = new Debug(); ! include_once( C_PHPMP_ROOT . CORE_DIR . 'dba/' . $dbinfo['type'] . '.php' ); ! $DB = new sql_db($dbinfo['type'], $dbinfo['user'], $dbinfo['pass'], $dbinfo['name'], false); $DB->connect(); + + unset($dbinfo); define('DB_CONFIG_TABLE', DB_NAME . '.' . DB_TABLE_PREFIX . 'config'); |