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.
 
 
 
 
 

31 righe
889 B

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
$error = true;
if (!empty($_SESSION["utente"]->oe) && !empty($_GET["codice"])) {
$compilato = DGUE::staticgetMyDGUE("","",["codice"=>$_GET["codice"]]);
if (!empty($compilato)) {
$dgue = json_decode($compilato[0]["json"],true);
if (!empty($dgue)) {
$xml = DGUE::getResponseXML($dgue);
if (!empty($xml)) {
$error = false;
header('Content-type: text/xml');
header('Content-Disposition: attachment; filename="DGUE-Response.xml"');
echo $xml;
} else {
?>
<h1><?= __("Nessun XML disponibile"); ?></h1>
<?
}
}
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
?>
<h1><?= __("Errore di conversione") ?></h1>
<?
die();
}
?>