$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); $error = true; if (!empty($_SESSION["utente"]) && !empty($_POST["modulo"]) && !empty($_POST["codice_elemento"]) && tokenVerify()) { $manager = new richiesteOE($_POST["modulo"],$_POST["codice_elemento"],$_POST["sub"]); if ($manager->checkAdminPermission("SAVE")) { $error = false; $esito = $manager->saveRichiesta($_POST); if (!empty($esito)) { $error = false; if (empty($esito["error"])) { $type= "success"; $title = __("Operazione eseguita con successo"); $msg = ""; if (!empty($esito["mancanti"])) { $type= "warning"; $title = __("Operazione eseguita con errori"); $msg = __("Richieste non salvate") . ":