ruolo == "SAD" && !empty($_POST["token"]) && !empty($_POST["class"]) && tokenVerify() ) { if ($_POST["action"] == "save_settings") { $current_settings = json_decode($_SESSION["ente"]->getInfo()[Integrazione::INFO_NAME], true); $current_settings[$_POST["class"]] = $_POST[$_POST["class"]]; $current_settings = json_encode($current_settings); $pdo->go( "UPDATE b_enti SET ".Integrazione::INFO_NAME." = :settings WHERE codice = :codice", [":codice" => $_SESSION["ente"]->codice, ":settings" => $current_settings] ); ?> swal({title:js_dict["success-msg"],type:"success"}).then(function(){ window.location.reload(); }); {$integration}, $_POST["action"])) { $function_name = sanitize_string($_POST["action"], [], "-", false); $_SESSION["ente"]->{$integration}->{$function_name}($_REQUEST); die(); } } http_response_code(401);