// ------------------------------------------------------------------- // // $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:c35b9aa6b0758@unix(/var/run/mysqld/mysql.sock)/intranet'; $db = DB::connect($dsn, isset($config['persistent']) ? $config['persistent'] : true); if (DB::isError($db)) { trigger_error($db->getMessage(), E_USER_ERROR); } return $db; } } ?>