$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"])) {
$concorso = publicConcorso::init($_POST["codice_concorso"]);
if (!empty($concorso)) {
if ($concorso->setLotto($_POST["codice_lotto"])) {
$record = $concorso->info;
$round = $concorso->round;
$lotto = $concorso->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"] ?>
$richiesta = $concorso->getRichiesta($_POST["codice_richiesta"]);
if (!empty($richiesta)) {
$busta = $concorso->busteDisponibili()[$richiesta["busta"]] ?? null;
if (!empty($busta)) {
if (strpos($_POST["filechunk"], "../")===false) {
$chunkPath = $config["chunk_folder"]."/".$_SESSION["utente"]->codice."/".$_POST["filechunk"];
$p7m = new P7Manager($chunkPath);
if ($busta["firma"] || !$p7m->hasSignedContent($chunkPath)) {
$esito = $concorso->getManagerPartecipazione()->saveBusta($_POST);
if ($esito["esito"] === true) {
alertManager::printSuccessBox(__("Operazione effettuata con successo"),"Hash SHA 256:" . $esito["feedback"]);
} else {
alertManager::printAlertBox(__($esito["feedback"]));
}
} else {
alertManager::printAlertBox(__("Impossibile caricare file firmati digitalmente"),__("Procedere a caricare file privi di firma"));
}
} else {
alertManager::printAlertBox(__("Errore nel file allegato"));
}
} else {
alertManager::printAlertBox(__("Errore nell'individuazione della busta"));
}
} else {
alertManager::printAlertBox(__("Errore nella richiesta"));
}
?>
&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();
}
?>