]> git.llucax.com Git - mecon/intranet.git/blobdiff - sistema/local_lib/intranetdb.php
BugFixs.
[mecon/intranet.git] / sistema / local_lib / intranetdb.php
index 02c08e4cf3508c518b0341c3b5bf851ec686ae81..80e717b7a8731a6a53a938e88009e319de831f5a 100644 (file)
@@ -41,7 +41,7 @@ class IntranetDB extends DB {
     function connect()
     {
         $config = @parse_ini_file(dirname(__FILE__).'/../conf/db.ini');
     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:p007b2036@localhost/intranet';
         $db = DB::connect($dsn, isset($config['persistent']) ? $config['persistent'] : true);
         if (DB::isError($db)) {
             trigger_error($db->getMessage(), E_USER_ERROR);
         $db = DB::connect($dsn, isset($config['persistent']) ? $config['persistent'] : true);
         if (DB::isError($db)) {
             trigger_error($db->getMessage(), E_USER_ERROR);