$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); $error = true; if (!empty($_SESSION["utente"])) { $manager = new pubblicitaLegale($_GET["modulo"],$_GET["codice_elemento"],$_GET["sub"]); if ($manager->checkAdminPermission()) { if (!empty($_GET["codice"])) { $tmp = $manager->getPubblicazioni(["codice"=>$_GET["codice"]]); if (!empty($tmp)) { $oggetto = $tmp[0]; } } else { $oggetto = get_campi("b_pubblicita_legale"); } if (!empty($oggetto)) { $error = false; ?>
} } } if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>