<?php
/***************************************************************************
 *                                 db.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: db.php,v 1.10 2002/03/18 13:35:22 psotfx Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/


switch(DBMS)
{
	case 'mysql':
		include('db/mysql.class.php');
		break;

	case 'mysql4':
		include('db/mysql4.class.php');
		break;

	case 'postgres':
		include('db/postgres7.class.php');
		break;

	case 'mssql':
		include('db/mssql.class.php');
		break;

	case 'oracle':
		include('db/oracle.class.php');
		break;

	case 'msaccess':
		include('db/msaccess.class.php');
		break;

	case 'mssql-odbc':
		include('db/mssql-odbc.class.php');
		break;
}

// Make the database connection.
$db = new sql_db(DB_HOST, DB_USER, DB_PASSWD, DB_NAME, false);
if(!$db->db_connect_id)
{
   message_die(CRITICAL_ERROR, "Could not connect to the database");
}

?>
