$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 { ?>