permission($radice,$_POST["codice"],$id_modulo) && tokenVerify() && $_SESSION["utente"]->unlockSupporto()) { $operazione = empty($_POST["codice"]) ? "INSERT" : "UPDATE"; if ($operazione == "INSERT") { $anac = new anac(); } else { $anac = anac::init($_POST["codice"]); } if (!empty($anac)) { $error = false; $return = $anac->saveGara($_POST); if ($return["esito"] == true) { ?> swal({title:js_dict["success-msg"],type:"success"}).then(function(){ showModalWithURL('/backend/anac/send.php?returnToEditGara=1&token=&method=&codice='); window.location.href="/backend/anac/panel.php?codice="; }); ",$return["errori"]); } ?> swal({title:js_dict.error,html:,type:"error"});