Beispiel #1
0
$oUsuSesion = $_SESSION['oUsuSesion'];
if ($oUsuSesion == null || !$oUsuSesion->getSesion()) {
    $_SESSION['sWarning'] = "Debe iniciar sesión.";
} else {
    //COMPRUEBO LOS USUARIOS
    if ($oUsuSesion->getCategoria() == "SUPER" || $oUsuSesion->getCategoria() == "ADMINISTRADOR") {
        $sAccion = $_POST['hidAccion'];
        //DETALLES
        if ($sAccion == "E") {
            $oBD = new CBaseDatos();
            $bEstado = $oBD->fBoolConectar();
            if (isset($_SESSION['arIDS'])) {
                $arIDS = $_SESSION['arIDS'];
                for ($i = 0; $i < count($arIDS); $i++) {
                    $oCTmp = new CCliente($arIDS[$i], null, null, null, null, null, null, null, null, null, null, null, null);
                    $oCTmp->EliminarF();
                }
            } else {
                if (isset($_SESSION['oCliente'])) {
                    $oCliente = $_SESSION['oCliente'];
                    $oCliente->EliminarF();
                }
            }
        }
        unset($_SESSION['oCliente']);
        unset($_SESSION['arIDS']);
        $oCliente = null;
        $oCtmp = null;
        header('Location: ../Backend/UILista.php');
        exit;
    } else {