$error = true; $configPath = substr(__DIR__, 0, strpos(__DIR__, "/public_html")) . "/config.php"; include_once($configPath); if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice) && !empty($_GET["version"])) { $versionInfo = DGUE::versions()[$_GET["version"]] ?? null; if (!empty($versionInfo)) { $versionKey = purify($_GET["version"]); if (empty($_GET["codice"])) { $record = get_campi("b_dgue_settings"); } else { $record = DGUE::getCriteria($_GET["version"], $_GET["codice"])[0] ?? false; } if (!empty($record)) { $error = false; ?>
} } } if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>