// ------------------------------------------------------------------- // // $Id$ // require_once 'DB.php'; /** * @access public */ class IntranetDB extends DB { /** * @return void * @access public */ function connect() { $config = @parse_ini_file(dirname(__FILE__).'/../conf/db.ini'); $dsn = @$config['dsn'] ? $config['dsn'] : 'mysql://intranet:p007b2036@localhost/intranet'; $db = DB::connect($dsn, isset($config['persistent']) ? $config['persistent'] : true); if (DB::isError($db)) { trigger_error($db->getMessage(), E_USER_ERROR); } return $db; } } ?>