<?php

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
define('USE_BRIDGEMGR', 1);
require_once 'bridge/udb_base.inc.php';
class cpg_udb extends core_udb {
	function cpg_udb()
	{
	global $BRIDGE;
	if (!USE_BRIDGEMGR)
		{
			$this->boardurl = 'http://www.limonest-patrimoine.net';
			require_once('../config.php');
		} else { 
			$this->boardurl = $BRIDGE['http://www.limonest-patrimoine.net'];
			require_once($BRIDGE['../config.php'] . 'config.php');
		}
		$this->db = array(
			'name' => $db_name,
			'host' => $db_host,
			'user' => $db_username,
			'password' => $db_password,
			'prefix' =>$db_prefix
		);
		$this->table = array(
			'users' => 'membre',
		);
		$this->usertable = '`' . $this->db['name'] . '`.' . $this->db['prefix'] . $this->table['users'];
		$this->field = array(
			'username' => 'username',
			'user_id' => 'id',
			'password' => 'password',
			'email' => 'email',
		);
		$this->connect();
	}		
}

// and go !
$cpg_udb = new cpg_udb;
?>