2 /***************************************************************************
5 * begin : Saturday, Feb 13, 2001
6 * copyright : (C) 2001 The phpBB Group
7 * email : support@phpbb.com
9 * $Id: db.php,v 1.10.2.3 2005/10/30 15:17:14 acydburn Exp $
12 ***************************************************************************/
14 /***************************************************************************
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
21 ***************************************************************************/
23 if ( !defined('IN_PHPBB') )
25 die("Hacking attempt");
31 include($phpbb_root_path . 'db/mysql.'.$phpEx);
35 include($phpbb_root_path . 'db/mysql4.'.$phpEx);
39 include($phpbb_root_path . 'db/postgres7.'.$phpEx);
43 include($phpbb_root_path . 'db/mssql.'.$phpEx);
47 include($phpbb_root_path . 'db/oracle.'.$phpEx);
51 include($phpbb_root_path . 'db/msaccess.'.$phpEx);
55 include($phpbb_root_path . 'db/mssql-odbc.'.$phpEx);
59 // Make the database connection.
60 $db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
61 if(!$db->db_connect_id)
63 message_die(CRITICAL_ERROR, "Could not connect to the database");