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
915 B

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
$content = false;
if (empty($_POST["codice_elenco"]) && !empty($_GET["codice_elenco"])) {
$_POST = $_GET;
}
if (!empty($_SESSION["utente"])) {
$elenco = publicAlboFornitori::init($_POST["codice_elenco"]);
if (!empty($elenco)) {
$partecipante = $elenco->miaPartecipazione();
if (!empty($partecipante)) {
$content = $elenco->getPDF();
}
}
if (!empty($content)) {
header('Content-Type: application/pdf');
header('Content-Disposition: attachment; filename=Questionari.pdf');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
echo $content;
} else {
header('HTTP/1.0 403 Forbidden');
echo __("Errore nella richiesta");
die();
}
}
?>