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.
 
 
 
 
 

46 righe
1.8 KiB

<?php
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once $configPath;
if (!empty($_SESSION["utente"]) && tokenVerify($_POST["token"])) {
foreach (["codice", "codice_elenco"] as $parameter) {
if (empty($_POST[$parameter])) {
http_response_code(403);
die();
}
}
$codice_richiesta = (int) sanitize_string($_POST["codice"]);
$codice_elenco = (int) sanitize_string($_POST["codice_elenco"]);
$albo = publicAlboCommissione::init($codice_elenco);
if (!empty($albo) && $albo->partecipazioneAttiva()) {
$partecipante = $albo->miaPartecipazione();
if (!empty($partecipante)) {
$busta = $albo->getBusta($partecipante["codice"], $codice_richiesta, false, true);
if (!empty($busta)) {
$richiesta = $albo->getRichiesta($codice_richiesta);
if (!empty($richiesta)) {
if ($partecipante["conferma"] == "S") {
if ($richiesta["controllo"] == "N") {
$albo->aggiorna();
} else {
$albo->revoca();
}
}
$albo->deleteBusta($busta["codice_richiesta"]);
?>
Swal({
title: "<?=__('Complimenti')?>",
text: "<?=__('Opreazione eseguita correttamente')?>",
type: "success",
closeOnConfirm: true,
}).then(() => {
window.location.reload();
})
<?
die();
}
}
}
}
}
http_response_code(403);