forked from qwerty/milfs
correcion de nuevas rutinas de conexion en funciones.php
This commit is contained in:
parent
9d03a10f85
commit
5b39f5ec7c
@ -4481,32 +4481,7 @@ return $respuesta;
|
||||
}
|
||||
$xajax->registerFunction("formulario_modal");
|
||||
|
||||
function Conectarse(){
|
||||
if ( !isset ( $link ) ) {
|
||||
|
||||
include("includes/datos.php");
|
||||
if(!isset($db)) {
|
||||
include("milfs/includes/datos.php");
|
||||
}
|
||||
|
||||
if (!($link=mysql_connect($servidor,$usuario,$password)))
|
||||
{
|
||||
echo "Error conectando a la base de datos.";
|
||||
exit();
|
||||
}
|
||||
if (!mysql_select_db($db,$link))
|
||||
{
|
||||
echo "Error seleccionando la base de datos.";
|
||||
exit();
|
||||
}
|
||||
|
||||
$_SESSION['path']= $path_instalacion;
|
||||
$_SESSION['path_images_secure']= $path_images_secure;
|
||||
$_SESSION['url']= $url;
|
||||
$_SESSION['upload_size']= $upload_size;
|
||||
return $link;
|
||||
}
|
||||
}
|
||||
|
||||
function limpia_div($capa){
|
||||
$respuesta = new xajaxResponse('utf-8');
|
||||
|
Loading…
Reference in New Issue
Block a user