27 lines
707 B
PHP
27 lines
707 B
PHP
<?php
|
|
|
|
function ConectarMaestro() {
|
|
$ini= array( 'user' => 'helpcom_db'
|
|
, 'pass' => 'helpcom211'
|
|
, 'host' => '10.0.0.4'
|
|
, 'db' => 'db_trebol_centralizado'
|
|
);
|
|
if (!$ini) {
|
|
die("Error cargando la configuración de la sucursal.\n");
|
|
}
|
|
if (!($link=mysql_connect( $ini['host'], $ini['user'], $ini['pass'] ))) {
|
|
die("Error conectando al servidor.\n");
|
|
exit();
|
|
}
|
|
if (!mysql_select_db($ini['db'],$link))
|
|
{
|
|
die("Error abriendo la base de datos.\n");
|
|
exit();
|
|
}
|
|
return $link;
|
|
}
|
|
|
|
function Version() {
|
|
return htmlspecialchars(@file_get_contents('./VERSION.txt'));
|
|
}
|
|
?>
|