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.
36 righe
1.5 KiB
36 righe
1.5 KiB
<? |
|
$error = true; |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php"; |
|
include_once($configPath); |
|
$id_modulo = "preliminari"; |
|
$cmd_info = anac::getInfoModulo($id_modulo); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_GET["codice"],$id_modulo) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"])) { |
|
$anac = anac::init($_GET["codice"]); |
|
if (!empty($anac)) { |
|
if (!empty($_GET["codice_lotto"])) { |
|
$lotto = $anac->getLotti($_GET["codice_lotto"])[0] ?? false; |
|
if (!empty($lotto["codice"])) { |
|
$error = false; |
|
?> |
|
<h1> |
|
<?= __("Aggiorna da SIMOG"); ?> |
|
</h1> |
|
<form rel="validate" method="post" action="/backend/anac/lotti/sync/save.php" id="edit-form"> |
|
<? alertManager::printWarningBox(__("L'operazione sostituirà tutti i dati presenti in piattaforma per il lotto indicato. Vuoi Continuare?")); ?> |
|
<input id="token" type="hidden" name="token" value="<?= tokenGen() ?>"> |
|
<input id="codice" type="hidden" name="codice" value="<?= $anac->info["codice"] ?>"> |
|
<input id="codice" type="hidden" name="codice_lotto" value="<?= $lotto["codice"] ?>"> |
|
<button class="btn btn-success btn-block my-3"> |
|
<span class="fa fa-sync"></span> <?= __("Sincronizza") ?> |
|
</button> |
|
</form> |
|
<? |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|