|
|
$dbtype = "MySQL";
switch($dbtype) {
case 'MySQL':
include("".$the_include."/mysql.php");
break;
case 'mysql4':
include("".$the_include."/mysql4.php");
break;
case 'postgres':
include("".$the_include."/postgres7.php");
break;
case 'mssql':
include("".$the_include."/mssql.php");
break;
case 'oracle':
include("".$the_include."/oracle.php");
break;
case 'msaccess':
include("".$the_include."/msaccess.php");
break;
case 'mssql-odbc':
include("".$the_include."/mssql-odbc.php");
break;
case 'db2':
include("".$the_include."/db2.php");
break;
}
include_once($the_include."/mysql.php");
if(!defined('NUKE_ET')) {
Header("Location: ../error.php?op=e403");
die();
}
if (defined('FORUM_ADMIN')) {
$the_include = "../../../db";
} else {
$the_include = "db";
}
include_once($the_include."/mysql.php");
$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
if(!$db->db_connect_id) {
Header("db.html");
die();
}
|
|