permission($radice) && !empty($_POST["codice"]) && tokenVerify()) { $goToMtg = new goToMtg; $result = $goToMtg->createFirstHostToken($_POST["code"],$_SESSION["ente"]->codice,$_POST["codice"]); if ($result === true) { $error = false; ?> swal({title:"",type:"success"}).then(function() { window.location.reload()});