permission($radice,$_POST["codice_gara"],$id_modulo) && tokenVerify() && $_SESSION["utente"]->unlockSupporto()) { $gara = gara::init($_POST["codice_gara"]); if (!empty($gara)) { $lock = $gara->checkLock($cmd_info["id"]); if ($lock) { header('HTTP/1.0 403 Forbidden'); die(); } $codice = $gara->saveLotto($_POST); if ($codice !== false) { $error = false; $action = (empty($_POST["codice"])) ? "INSERT" : "UPDATE"; $canAdd = $gara->canAddOrRemoveLotti(); if($action == "INSERT" && !$canAdd) { header('HTTP/1.0 403 Forbidden'); die(); } $gara->addToLog($action,__("Lotto") . " #" . $codice . ": " . $_POST["oggetto"]); if (empty($_POST["codice"]) && $gara->getProcedura()["multiLotto"]) { if(!empty($_POST['marketplace']) && $_POST['marketplace'] == true){ return ['save' => true, 'codice' => $codice]; }else{ ?> swal({title:js_dict["success-msg"],html:'',type:"info",showCancelButton:true,confirmButtonText: '',cancelButtonText: ''}).then((result) => { refreshURL = "/backend/gare/panel.php?codice=info["codice"] ?>"; if (result.value) { refreshURL = "/backend/gare/lotti/index.php?codice=info["codice"] ?>&createLotto=1"; } window.location.href=refreshURL; }); swal({title:js_dict["success-msg"],type:"success"}).then(function(){ getLotti()) > 1) { ?> window.location.reload(); window.location.href="/backend/gare/panel.php?codice=info["codice"] ?>"; });