$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (!function_exists("fatal_handler")) {
function fatal_handler() {
$error = error_get_last();
if( $error !== NULL && ($error['type'] === E_ERROR || $error['type'] === E_USER_ERROR))
{
global $record;
?>
= __("errore") . " " . __("upload") ?>
if (!empty($record["codice"])) { ?>
">= __('Indietro') ?>
}
}
}
}
register_shutdown_function('fatal_handler');
if (!empty($_SESSION["utente"]) && !empty($_POST["codice_lotto"])) {
$gara = publicGara::init($_POST["codice_gara"]);
if (!empty($gara)) {
if ($gara->setLotto($_POST["codice_lotto"])) {
$record = $gara->info;
$round = $gara->round;
$lotto = $gara->lotto;
$breadcrumb = array();
$breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"];
$breadcrumb["/".$radice."/dettaglio.php?codice={$record["codice"]}&codice_lotto={$lotto["codice"]}"] = __("Dettaglio");
$breadcrumb["partecipa.php?codice={$record["codice"]}&codice_lotto={$lotto["codice"]}"] = __("Pannello");
$breadcrumb[] = __("Carica documento");
include_once ($root."/layout/top.php");
?>
?>
= $record["oggetto"] ?>
$esito = $gara->getManagerPartecipazione()->saveEmendamento($_POST);
if ($esito["esito"] === true) {
if ($_POST["segreta"] != "S") {
$richiesta = $gara->getRichiesta($_POST["codice_richiesta"]);
$mailer = new Communicator();
$mailer->oggetto = __('Richiesta emendamento') . " " . __('Gara') . ' #' . $record["id"];
$mailer->oggetto .= " - " . __("Lotto") . " #{$gara->lotto["numero"]}";
$mailer->corpo = $gara->getManagerPartecipazione()->partecipante["ragione_sociale"]. " - " . __("Richiesta emendamento") . "
{$richiesta["titolo"]}: Hash SHA 256: {$esito["feedback"]}";
$mailer->codice_pec = $gara->info["codice_pec"] ?? 0;
$mailer->comunicazione = true;
$mailer->sezione = "gare";
$mailer->codice_gara = $record["codice"];
$mailer->coda = true;
$mailer->destinatari = $_SESSION["utente"]->oe["codice"];
$mailer->send();
$mailer->codice_pec = -1;
$mailer->comunicazione = false;
$mailer->destinatari = Communicator::getPecAddress($record["codice_pec"]);
$mailer->send();
alertManager::printSuccessBox(__("Operazione effettuata con successo"),"Hash SHA 256:" . $esito["feedback"]);
} else {
alertManager::printInfoBox(__("Operazione effettuata con successo"),"Hash SHA 256:" . $esito["feedback"]);
alertManager::printWarningCompact(__("Per concludera la procedura procedi al caricamento della versione oscurata del documento"));
}
} else {
alertManager::printAlertBox(__($esito["feedback"]));
}
?>
&codice_lotto== $lotto["codice"] ?>">
= __("Torna al pannello per continuare le operazioni") ?>
include_once ($root."/layout/bottom.php");
} else {
echo '';
die();
}
} else {
echo '';
die();
}
} else {
echo '';
die();
}
?>