$error = true; $configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php"; include_once($configPath); if (isset($_SESSION["utente"]) && $_SESSION["utente"]->permission("simog")) { $printScript = false; if (isset($_POST["cig"])) { $_GET = $_POST; } else { $printScript = true; } if (empty($_GET["cig"]) || empty($_GET["anno"]) || empty($_GET["codice_ente"])) { $enti = $_SESSION["utente"]->getEntiBeneficiari(false); if ($enti !== false) { $error = false; ?>
} } else { if (tokenVerify($_GET["token"])) { if ($printScript) { echo ""; } } } } if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>