From d28a556789343016be3c7da29cf488cd98397b16 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 26 Jul 2006 01:17:14 +0000 Subject: [PATCH] r960: Making the installer work with ISSO2 --- install/global.php | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/install/global.php b/install/global.php index aef1fa4..2db6d92 100644 --- a/install/global.php +++ b/install/global.php @@ -27,6 +27,14 @@ error_reporting(E_ALL & ~E_NOTICE); chdir('./../'); define('ISSO_MT_START', microtime()); +define('ISSO_ESCAPE_STRINGS', 1); +define('ISSO_CHECK_POST_REFERER', 1); + +require_once('./framework/kernel.php'); +$bugsys = new ISSO; +$bugsys->set('apppath', getcwd()); +$bugsys->set('application', 'Bugdar'); +$bugsys->set('appversion', '[#]version[#]'); if (!file_exists('./includes/config.php')) { @@ -35,22 +43,12 @@ if (!file_exists('./includes/config.php')) } require_once('./includes/config.php'); -$thepass = $password; // darn register_globals - -define('ISSO_ESCAPE_STRINGS', 1); -define('ISSO_CHECK_POST_REFERER', 1); -require_once($pathtoisso . 'kernel.php'); -$bugsys =& $_isso; -$bugsys->application = 'Bugdar'; -$bugsys->apppath = $bugsys->fetch_sourcepath(getcwd()); -$bugsys->appversion = '[#]version[#]'; -$bugsys->debug = $debug; -$bugsys->sourcepath = $bugsys->fetch_sourcepath($pathtoisso); +$bugsys->set('debug', $debug); +define('ISSO_DB_LAYER', 'db_mysql'); $bugsys->load('db_mysql'); -$db->database = $database; -$db->connect($servername, $username, $thepass, $usepconnect); +$db->connect($servername, $username, $password, $database, $usepconnect); $bugsys->exec_sanitize_data(); -- 2.22.5