From 55fcaa615c6b43eacdcf91b503cdc4b2d14d32b9 Mon Sep 17 00:00:00 2001 From: irina Date: Tue, 27 Feb 2018 13:13:12 +0000 Subject: #804 uso de Mysqli por compatibilidad de php7 git-svn-id: https://opengnsys.es/svn/branches/version1.1@5620 a21b9725-9963-47de-94b9-378ad31fedc9 --- admin/WebConsole/controlpostacceso.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'admin/WebConsole/controlpostacceso.php') diff --git a/admin/WebConsole/controlpostacceso.php b/admin/WebConsole/controlpostacceso.php index 34030c08..844f33ca 100644 --- a/admin/WebConsole/controlpostacceso.php +++ b/admin/WebConsole/controlpostacceso.php @@ -17,10 +17,6 @@ include_once("./clases/AdoPhp.php"); $ident=""; $idc=0; $iph=""; // Switch menu cliente - - if (isset($_POST["usu"])) $usu=mysql_escape_string($_POST["usu"]); - if (isset($_POST["pss"])) $pss=mysql_escape_string($_POST["pss"]); - if (isset($_POST["idcentro"])) $idc=mysql_escape_string($_POST["idcentro"]); if (isset($_GET["iph"])) $iph=$_GET["iph"]; //________________________________________________________________________________________________________ @@ -29,6 +25,10 @@ include_once("./clases/AdoPhp.php"); die($TbMsg["ACCESS_ERROR"]); //________________________________________________________________________________________________________ + if (isset($_POST["usu"])) $usu=mysqli_escape_string($cmd->Conexion->controlador, $_POST["usu"]); + if (isset($_POST["pss"])) $pss=mysqli_escape_string($cmd->Conexion->controlador, $_POST["pss"]); + if (isset($_POST["idcentro"])) $idc=mysqli_escape_string($cmd->Conexion->controlador, $_POST["idcentro"]); + if ($idc != 0) { $rs=new Recordset; -- cgit v1.2.3-18-g5258