$error = true; $configPath = substr(__DIR__, 0, strpos(__DIR__, "public_html")) . "/config.php"; include_once($configPath); if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission('programmazione-art21')) { if (!empty($_GET["codice"])) { $tmp = Programma::init($_GET["codice"]); if (!empty($tmp)) { $record = $tmp->info; } } else { $record = get_campi("b_programmi_art21"); } if (!empty($record)) { $extraInfo = json_decode($record["extraInfo"],true); $error = false; ?>
} } if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>