From 7da49adf93348b282b6556f4684ee920bce89031 Mon Sep 17 00:00:00 2001 From: humano Date: Tue, 19 Feb 2019 05:46:49 -0500 Subject: [PATCH] revision de login --- funciones/funciones.php | 2 +- index.php | 2 +- js/scripts.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/funciones/funciones.php b/funciones/funciones.php index 4dd842e..82a2442 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -5459,7 +5459,7 @@ $consulta= "SELECT *, $tabla_autenticacion.id AS id_usuario

Hola $_SESSION[username]

"; //$url=urlencode('../index.php'); //$respuesta->addRedirect("$_SESSION[site]"); - $respuesta->addScript("window.location='../'"); + $respuesta->addScript("window.location='./'"); // $respuesta->addAssign($div,"innerHTML",$resultado); //header("Location: ../"); //return; diff --git a/index.php b/index.php index 2208576..7bf8e63 100644 --- a/index.php +++ b/index.php @@ -33,7 +33,7 @@ if (isset($_REQUEST['consulta'])) {$consulta = $_REQUEST['consulta'];} else {$co if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";} ?> - + diff --git a/js/scripts.js b/js/scripts.js index d0a3024..a03e626 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -20,11 +20,11 @@ function delayTimer() { restante = (tiempo - transcurrido_minutos); prefin = (tiempo*60)-transcurrido; - document.form_session.tiempo_session.value = "Cierra en: "+restante+" minutos "; + document.form_session.tiempo_session.value = "Cierra en: "+restante+" minutos "+inicio; if(restante == 1 ){ //alert(transcurrido); - location.href="./salir.php"; + location.href="../../salir.php"; }else{ setTimeout("revisarSession()",2000) ; }