Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
286 righe
9.8 KiB
286 righe
9.8 KiB
<?php |
|
|
|
|
|
define("AMMINISTRATORE", 0); |
|
define("SUPER_USER", 1); |
|
$RUOLI = array( |
|
AMMINISTRATORE => "AMMINISTRATORE", |
|
SUPER_USER => "SUPER_USER" |
|
); |
|
|
|
define('GRUPPO_STATISTICHE', 11); |
|
define('GRUPPO_ISTANZE', 22); |
|
define('GRUPPO_OPERATORI', 33); |
|
define('GRUPPO_LOGS', 44); |
|
define('GRUPPO_FAQ', 55); |
|
define('GRUPPO_REGIONE', 99); |
|
|
|
$MENUITEMS[] = array( |
|
"id" => "DASHBOARD", |
|
"text" => "Dashboard", |
|
"description" => "La tua Dashboard", |
|
"icon" => "fas fa-tachometer-alt", |
|
"url" => BASE_HTTP . "index.php", |
|
"handler" => "", |
|
"super_user" => 0, |
|
"group_id" => array() |
|
); |
|
|
|
$MENUITEMS[] = array( |
|
"id" => "DOMANDE", |
|
"text" => "Istanze", |
|
"description" => "Elenco delle istanze", |
|
"icon" => "fas fa-hand-holding-usd", |
|
"url" => "", |
|
"handler" => "", |
|
"fase" => 0, |
|
"super_user" => SUPER_USER, // se alla voce di menu viene impostato i livello "1" è visibile solo all'amministratore di sistema oppure al solo utente appartenente al gruppo |
|
"group_id" => array(GRUPPO_ISTANZE,GRUPPO_REGIONE), // |
|
"children" => array( |
|
array( |
|
"id" => "DOMANDE-1", |
|
"text" => "Richieste di sconto", |
|
"description" => "Elenco richieste di sconto", |
|
"icon" => "fas fa-ticket-alt", |
|
"url" => BASE_HTTP . "modules/private/elenco_sconti.php", |
|
"handler" => "", |
|
"fase" => 0, |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_REGIONE) |
|
), |
|
array( |
|
"id" => "DOMANDE-2", |
|
"text" => "Istanze presentate", |
|
"description" => "Elenco delle istanze presentate", |
|
"icon" => "fas fa-file-alt", |
|
"url" => BASE_HTTP . "modules/private/domande.php", |
|
"handler" => "", |
|
"fase" => 0, |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_ISTANZE,GRUPPO_REGIONE) |
|
), |
|
array( |
|
"id" => "DOMANDE-4", |
|
"text" => "Ricerca per ID Richiesta", |
|
"description" => "Ricerca per ID Richiesta", |
|
"icon" => "fas fa-search", |
|
"url" => BASE_HTTP . "modules/private/domandeid.php", |
|
"handler" => "", |
|
"fase" => 0, |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_ISTANZE,GRUPPO_REGIONE) |
|
), |
|
array( |
|
"id" => "DOMANDE-5", |
|
"text" => "Controlli", |
|
"description" => "Controlli Istanze", |
|
"icon" => "fas fa-microscope", |
|
"url" => BASE_HTTP . "modules/private/domandecontrolli.php", |
|
"handler" => "", |
|
"fase" => 0, |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_REGIONE) |
|
), |
|
array( |
|
"id" => "DOMANDE-3", |
|
"text" => "Istanze non erogate", |
|
"description" => "Elenco delle istanze non erogate", |
|
"icon" => "fas fa-exclamation", |
|
"url" => BASE_HTTP . "modules/private/domandenonerogate.php", |
|
"handler" => "", |
|
"fase" => 0, |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_REGIONE) |
|
),/* |
|
array( |
|
"id" => "DOMANDE-2", |
|
"text" => "Presentate (con sfratto)", |
|
"description" => "Elenco delle istanze presentete con procedura di sfratto", |
|
"icon" => "fas fa-file-alt", |
|
"url" => BASE_HTTP . "modules/private/domande.php?std=1&sfr=1", |
|
"handler" => "", |
|
"fase" => 0, |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_ISTANZE,GRUPPO_REGIONE) |
|
), |
|
array( |
|
"id" => "DOMANDE-3", |
|
"text" => "Ricerca per ID Istanza", |
|
"description" => "Ricerca delle richieste raggruppati per numero ISTANZA", |
|
"icon" => "fas fa-search", |
|
"url" => BASE_HTTP . "modules/private/domandeid.php", |
|
"handler" => "", |
|
"fase" => 0, |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_ISTANZE,GRUPPO_REGIONE) |
|
)*/ |
|
) |
|
); |
|
|
|
$MENUITEMS[] = array( |
|
"id" => "GESTIONE", |
|
"text" => "Gestione", |
|
"description" => "Gestione attività", |
|
"icon" => "fas fa-hand-holding-usd", |
|
"url" => "", |
|
"handler" => "", |
|
"fase" => 0, |
|
"super_user" => SUPER_USER, // se alla voce di menu viene impostato i livello "1" è visibile solo all'amministratore di sistema oppure al solo utente appartenente al gruppo |
|
"group_id" => array(GRUPPO_STATISTICHE,GRUPPO_REGIONE), // |
|
"children" => array( |
|
array( |
|
"id" => "AEROPORTI", |
|
"text" => "Aeroporti", |
|
"description" => "Gestione degli aeroporti", |
|
"icon" => "fas fa-plane", |
|
"url" => BASE_HTTP . "modules/private/aeroporti.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_LOGS) |
|
), |
|
array( |
|
"id" => "COMPAGNIE", |
|
"text" => "Compagnie", |
|
"description" => "Gestione delle compagnie aeree", |
|
"icon" => "fas fa-globe", |
|
"url" => BASE_HTTP . "modules/private/compagnie.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_LOGS) |
|
), |
|
|
|
array( |
|
"id" => "STATS", |
|
"text" => "Statistiche", |
|
"description" => "Pagina delle statistiche", |
|
"icon" => "fas fa-chart-line", |
|
"url" => BASE_HTTP . "modules/private/analytics.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, // visibile solo all'utente SUPER USER |
|
"group_id" => array(GRUPPO_STATISTICHE, GRUPPO_REGIONE) |
|
), |
|
array( |
|
"id" => "REPORT_STATS", |
|
"text" => "Report statistiche", |
|
"description" => "Pagina dei report delle statistiche", |
|
"icon" => "far fa-chart-bar", |
|
"url" => BASE_HTTP . "modules/private/report_statistiche.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, // visibile solo all'utente SUPER USER |
|
"group_id" => array(GRUPPO_STATISTICHE, GRUPPO_REGIONE) |
|
), |
|
array( |
|
"id" => "ESTRAZIONI", |
|
"text" => "Estrazioni", |
|
"description" => "Gestione estrazioni delle richieste di sconto", |
|
"icon" => "fas fa-euro-sign", |
|
"url" => BASE_HTTP . "modules/private/estrazioni.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, // visibile solo all'utente SUPER USER |
|
"group_id" => array(GRUPPO_REGIONE) |
|
), |
|
array( |
|
"id" => "DECRETI", |
|
"text" => "Archivio decreti di liquidazione", |
|
"description" => "Elenco decreti di liquidazione emessi", |
|
"icon" => "fas fa-file-pdf", |
|
"url" => BASE_HTTP . "modules/private/elenco_decreti.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, // visibile solo all'utente SUPER USER |
|
"group_id" => array(GRUPPO_REGIONE) |
|
) |
|
|
|
|
|
) |
|
); |
|
|
|
$MENUITEMS[] = array( |
|
"id" => "FAQ", |
|
"text" => "F.A.Q.", |
|
"description" => "Gestione delle FAQ", |
|
"icon" => "fas fa-question-circle", |
|
"url" => "#", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, |
|
"fase" => 0, |
|
"group_id" => array(GRUPPO_FAQ, GRUPPO_REGIONE), |
|
"children" => array( |
|
array( |
|
"id" => "FAQ", |
|
"text" => "F.A.Q. pubbliche", |
|
"description" => "Gestione delle FAQ da pubblicare", |
|
"icon" => "fas fa-question-circle", |
|
"url" => BASE_HTTP . "modules/private/faq.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, |
|
"fase" => 0, |
|
"group_id" => array(GRUPPO_FAQ, GRUPPO_REGIONE) |
|
), |
|
array( |
|
"id" => "FAQUSER", |
|
"text" => "F.A.Q. ricevute", |
|
"description" => "Gestione delle FAQ inviate dagli utenti", |
|
"icon" => "fas fa-paper-plane", |
|
"url" => BASE_HTTP . "modules/private/faq_utenti.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, |
|
"fase" => 0, |
|
"group_id" => array(GRUPPO_FAQ, GRUPPO_REGIONE) |
|
) |
|
) |
|
); |
|
|
|
|
|
$MENUITEMS[] = array( |
|
"id" => "ADMIN", |
|
"text" => "Amministratore", |
|
"description" => "Gestione sistema", |
|
"icon" => "fas fa-cogs", |
|
"url" => "#", |
|
"handler" => "", |
|
"super_user" => 1, |
|
"group_id" => array(GRUPPO_OPERATORI), |
|
"children" => array( |
|
array( |
|
"id" => "OPERATORI", |
|
"text" => "Operatori", |
|
"description" => "Elenco degli Operatori", |
|
"icon" => "fas fa-users", |
|
"url" => BASE_HTTP . "modules/operatori/operatori.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, // visibile solo all'utente SUPER USER |
|
"group_id" =>array(GRUPPO_OPERATORI) |
|
), |
|
array( |
|
"id" => "LOGSFE", |
|
"text" => "Log Frontend", |
|
"description" => "Visualizzazione Logs di front end", |
|
"icon" => "fas fa-user-tie", |
|
"url" => BASE_HTTP . "modules/logs/logs.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_LOGS) |
|
), |
|
array( |
|
"id" => "LOGSBE", |
|
"text" => "Log Backend", |
|
"description" => "Visualizzazione Logs di back end", |
|
"icon" => "fas fa-user-secret", |
|
"url" => BASE_HTTP . "modules/logs/logs_be.php", |
|
"handler" => "", |
|
"super_user" => SUPER_USER, |
|
"group_id" => array(GRUPPO_LOGS) |
|
) |
|
) |
|
); |
|
|
|
$MENUITEMS[] = array( |
|
"id" => "LOGOUT", |
|
"text" => "Esci", |
|
"description" => "Esci dal sistema", |
|
"icon" => "fas fa-sign-out-alt", |
|
"url" => BASE_HTTP . "logout.php", |
|
"handler" => "", |
|
"super_user" => 0, |
|
"group_id" => array() |
|
);
|
|
|