summaryrefslogtreecommitdiffstats
path: root/includes/dbal.php
blob: b7aafe2a2de7f04fce1e54c0a25c7d8e131b4ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/****************************** 
* EQdkp * Copyright 2002-2003 
* Licensed under the GNU GPL.  See COPYING for full terms. 
* ------------------ 
* dbal.php 
* begin: Tue December 17 2002 
*  
* $Id: dbal.php 46 2007-06-19 07:29:11Z tsigo $ 
* 
 ******************************/

if ( !defined('EQDKP_INC') )
{
     die('Do not access this file directly.');
}

switch ( $dbtype )
{
    case 'mysql':
        include_once($eqdkp_root_path . 'dbal/mysql.php');
        break;
    default:
        include_once($eqdkp_root_path . 'dbal/mysql.php');
        break;
}
// Instantiate the class, which connects in the constructor
$db = new SQL_DB($dbhost, $dbname, $dbuser, $dbpass, false);
if ( !$db->link_id )
{
    message_die('Could not connect to the database.');
}
?>