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.
 
 
 
 
 

23 righe
829 B

<?
$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"])) {
$cpn = new cpn($programma->info["codice_ente"],"b_programmi_art21",$programma->info["codice"]);
$cpn->debug=true;
$response = $cpn->downloadProgramma($programma->info["invio_cpn"]);
echo $response;
}
}
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>