permission($radice,$_POST["codice"],$id_modulo) && tokenVerify() && $_SESSION["utente"]->unlockSupporto()) { $error = false; if (!empty($_POST["codice"])) { $check = concorso::init($_POST["codice"]); $lotti = $check->getLotti(); } if (!empty($_POST["cpv"]) || !empty($lotti)) { if (!empty($_POST["fase"])) { if ($_SESSION["ente"]->checkLimite($radice) || $_POST["codice"] > 0) { $entiAbilitati = $_SESSION["utente"]->getEntiBeneficiari(false); $checkEnte = false; foreach($entiAbilitati AS $ente) { if ($_POST["codice_ente"] == $ente["codice"]) { $checkEnte = true; break; } } if ($checkEnte) { $concorso = concorso::save($_POST); if (is_a($concorso,"concorso")) { if (!$_SESSION["ente"]->checkLimite($radice) && empty($_POST["codice"])) { $_SESSION["ente"]->sendAlertLimite($radice); } ?> swal({title:js_dict["success-msg"],type:"success"}).then(function(){ window.location.href="/backend/concorsi/panel.php?codice=info["codice"] ?>"; }); swal({title:js_dict.error,html:"",type:"error"}); swal({title:js_dict.error,html:js_dict["error-generic"],type:"error"}); swal({title:js_dict.error,html:"",type:"error"}); swal({title:js_dict.error,html:"",type:"error"}); swal({title:js_dict.error,html:"",type:"error"}); swal({title:js_dict.error,html:"",type:"error"});