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.
28 righe
833 B
28 righe
833 B
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$error = true; |
|
if (!empty($_GET) && !empty($_SESSION["utente"])) { |
|
if (!empty($_GET["modulo"]) && !empty($_GET["codice_elemento"])) { |
|
$manager = new DGUE($_GET["modulo"],$_GET["codice_elemento"]); |
|
if (!empty($manager)) { |
|
$manager->checkAdminPermission(); |
|
$error = false; |
|
$xml = $manager->getRequestXML(); |
|
if (!empty($xml)) { |
|
header('Content-type: text/xml'); |
|
header('Content-Disposition: attachment; filename="DGUE-Request.xml"'); |
|
echo $xml; |
|
} else { |
|
?> |
|
<h1><?= __("Nessun XML disponibile"); ?></h1> |
|
<? |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|