$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); $error = true; if (!empty($_SESSION["utente"]) && !$_SESSION["utente"]->readOnly && $_SESSION["utente"]->permission($_GET["modulo"],$_GET["codice_elemento"],"avvisi")) { $manager = new avvisiProcedura($_SESSION["ente"]->codice,$_GET["modulo"],$_GET["codice_elemento"],$_GET["sub"]); if (!empty($_GET["codice"])) { $tmp = $manager->getAvvisi("N",["codice"=>$_GET["codice"]]); if (!empty($tmp)) { $avviso = $tmp[0]; } } else { $avviso = get_campi("b_avvisi"); } if (!empty($avviso)) { $error = false; ?>
} } if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>