diff options
author | irina <irinagomez@us.es> | 2018-02-27 13:13:12 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2018-02-27 13:13:12 +0000 |
commit | 55fcaa615c6b43eacdcf91b503cdc4b2d14d32b9 (patch) | |
tree | 772e688823287a756a9c0a300670e90ae7bc6a4f /admin/WebConsole/controlpostacceso.php | |
parent | 9f1274ec297d6ea74b55e2207f19348cd35235ec (diff) |
#804 uso de Mysqli por compatibilidad de php7
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5620 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/controlpostacceso.php')
-rw-r--r-- | admin/WebConsole/controlpostacceso.php | 8 |
1 files changed, 4 insertions, 4 deletions
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; |