diff options
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; |