X-Git-Url: https://git.llucax.com/mecon/yatta.git/blobdiff_plain/4e97c3d61c15d004111d556c8266e04ee1625148..de6df3bbeeea2b01a900d68284a575d019352abe:/script/servidores/YATTA_Server.php?ds=sidebyside diff --git a/script/servidores/YATTA_Server.php b/script/servidores/YATTA_Server.php index 4b02b6b..4763adf 100755 --- a/script/servidores/YATTA_Server.php +++ b/script/servidores/YATTA_Server.php @@ -55,7 +55,8 @@ require_once 'YATTA/Servidor.php'; //}}} //CREO UNA CONEXION MYSQL{{{ -$db =& DB::connect('mysql://intranet:intranet@bal747f/yatta', true); +$conf = parse_ini_file(dirname(__FILE__) . '/consultas.ini', true); +$db = DB::connect($conf['dsn'],$conf['opciones']); if (DB::isError($db)) { trigger_error($db->getMessage(), E_USER_ERROR); }