permission($radice,$_POST["id"]) && tokenVerify()) { $changelog_writer = new Changelog(); $changelog_writer->loadConfiguration($configPath); $id = $changelog_writer->save($_SESSION["ente"]->codice ?? null, $_POST); $error = empty($id); if (!$error): ?>swal({title:js_dict["success-msg"],type:"success"}).then(function(){ window.location.href="/backend/changelogs/edit.php?codice="; });swal({title:js_dict.error,html:js_dict["error-generic"],type:"error"});