$configPath = substr(__DIR__, 0, strpos(__DIR__, "/public_html")) . "/config.php";
include_once($configPath);
if (!empty($_SESSION["utente"]) && isset($_GET["codice"]) && ($_SESSION["utente"]->permission($radice))) {
$codice = purify($_GET["codice"]);
$re = Modulo::getModuli(["all_utente" => false])[$codice];
if (!empty($re) && $re["gerarchia"] >= $_SESSION["utente"]->gerarchia) {
$show = true;
if ($re["ente"] && !$re["all_ente"] && isset($_SESSION["ente"])) {
$sql = "SELECT * FROM r_moduli_ente WHERE id_modulo = :codice AND cod_ente = :cod_ente ";
$check_ente = $pdo->go($sql, [":codice" => $codice, ":cod_ente" => $_SESSION["ente"]->codice]);
if ($check_ente->rowCount() == 0) {
$show = false;
}
}
if ($show) {
?>
"> = $re["titolo"] ?>
= $re["descrizione"] ?>
-
-
| =__('Utente')?> |
=__('Ente')?> |
=__('Timestamp')?> |
|
| =__('Utente')?> |
=__('Ente')?> |
=__('Timestamp')?> |
|
}
}
}
?>