$arrClass = array("Cables"); $noFunctions = true; include ( realpath( dirname(__FILE__)) . "/scp/include/conn.php" ); $strRet = false ; if ( isset($_REQUEST["accion"]) ) { if ($_REQUEST["accion"] == "Login" ) { $_REQUEST["usuario"] = ( isset($_REQUEST["usuario"]) ) ? $_REQUEST["usuario"] : "" ; $_REQUEST["password"] = ( isset($_REQUEST["password"]) ) ? $_REQUEST["password"] : "" ; if ( $arrUser = $Cables->Auth($_REQUEST["usuario"], $_REQUEST["password"]) ) { $_SESSION["prensaID"] = $arrUser['Mail_ID']; $_SESSION["prensaName"] = $arrUser['Mail_Nombre']; $_SESSION["prensaMail"] = $arrUser['Mail_Mail']; $_SESSION["prensaLogged"] = true; header("Location: /cablera.html"); exit(); } else { $strRet = true; // Error a true, para que muestre el mensaje } } } else { $strRet = false; // No muestro error. } ?>