X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/30b342a8563ec023a0fdd4b37a690bd21311c33a..22ff747a92d77613360a06eb5b246b30b3be7997:/sistema/www/login.php?ds=inline diff --git a/sistema/www/login.php b/sistema/www/login.php index e15ebb0..ca3c860 100644 --- a/sistema/www/login.php +++ b/sistema/www/login.php @@ -25,7 +25,7 @@ if (!isset($sr)) { //error reading / authenticating - return false - echo "Error leyendo!\n"; + $error = true; } else { @@ -41,22 +41,25 @@ // Fin Agregado MANAZAR } - }else{ + } + { if(!isset($_SESSION['usuario'])) { if((isset($_GET['redirect']) && $_GET['redirect'] == 'sistemas') || (isset($_POST['redirect']) && $_POST['redirect'] == 'sistemas')) { - $m = new HTML_DietMarco('sistemas'); + $m = new HTML_DietMarco('sistemas', 'Sistemas'); $m->addTitle('Sistemas'); } else { - $m = new HTML_DietMarco('servicios'); + $m = new HTML_DietMarco('servicios', 'Servicios'); $m->addTitle('Servicios'); } $login = new HTML_Login(); + if(isset($error) && $error == 1) + $login->login_incorrecto = true;//FIXME terminar de prgramar cuando haya ldap $t = new HTML_Table(array('width' => 760, 'align' => 'center', 'cellspacing' => 0,