$error = true;
$configPath = substr(__DIR__, 0, strpos(__DIR__, "public_html")) . "/config.php";
include_once($configPath);
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission('progetti') && $_SESSION["utente"]->permission('cpn') && !empty($_GET["codice"])) {
$programma = Programma::init($_GET["codice"]);
if (!empty($programma)) {
$error = false;
if (!empty($programma->info["invio_cpn"])) {
if (empty($_SESSION["cpn"]["token"])) {
?>
} else {
?>
" class="btn btn-lg btn-success btn-block p-5" target="_blank">
= __("Download") ?>
}
} else {
alertManager::printAlertBox(__("Errore nell'elaborazione della richiesta"));
}
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>