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';
+ $dsn = @$config['dsn'] ? $config['dsn'] : 'mysql://intranet:c35b9aa6b0758@localhost/intranet';
$db = DB::connect($dsn, isset($config['persistent']) ? $config['persistent'] : true);
if (DB::isError($db)) {
trigger_error($db->getMessage(), E_USER_ERROR);