gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

37 righe
1.2 KiB

<?
$error =true;
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (!empty($_SESSION["utente"])) {
if (!isset($_POST["codice"])) {
$__2fa_array = [];
$__2fa_array["codice"] = $_SESSION["utente"]->codice;
} else if ($_SESSION["utente"]->permission("utenti",$_POST["codice"]) && !empty($_POST["note_delete2fa"])) {
$__2fa_array = [];
$__2fa_array["codice"] = $_POST["codice"];
$__2fa_array["note_delete2fa"] = json_encode($_POST["note_delete2fa"]);
$__2fa_array["timestamp_delete2fa"] = date("d/m/Y H:i:s");
$__2fa_array["utente_delete2fa"] = $_SESSION["utente"]->codice;
}
if (isset($__2fa_array)) {
$__2fa_array["twoFactor_token"] = NULL;
$salva = new salva();
$salva->debug = false;
$salva->nome_tabella = "b_utenti";
$salva->operazione = "UPDATE";
$salva->oggetto = $__2fa_array;
$codice = $salva->save();
if ($codice !== false) {
$error = false;
?>
swal({title:js_dict["success-msg"],type:"success"}).then(function(){ window.location.reload(); });
<?
}
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>