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.
 
 
 
 
 

30 righe
1.1 KiB

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (!empty($_SESSION["utente"]->oe) && !$_SESSION["utente"]->isSupporto() && tokenVerify($_GET["token"])) {
$manager = new publicRichiesteOE();
if (!empty($manager)) {
$tmp = $manager->getRichieste("S",["codice"=>$_GET["codice"]]);
if (!empty($tmp)) {
$richiesta = $tmp[0];
$integrazione = $manager->getContent($richiesta["codice"],$_GET["codice_relazione"], true);
if (!empty($integrazione["content"])) {
adaptMemoryLimitToFile($integrazione["file"]);
}
}
}
}
if (!empty($integrazione["content"])) {
header('Content-Description: File Transfer');
header('Content-Type: ' . $integrazione["mime"]);
header('Content-Disposition: attachment; filename='.str_replace("-",".",$integrazione["nomeFile"]));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
echo $integrazione["content"];
} else {
header('HTTP/1.0 403 Forbidden');
die();
}
?>