$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
include_once "{$beRoot}/layout/top.php";
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice)) {
?>
= Modulo::header($radice) ?>
$bind = array();
$sql = "SELECT
b_check_sessions.id,
b_check_sessions.sessionID,
b_check_sessions.ip,
b_check_sessions.timestamp,
b_utenti.cognome,
b_utenti.nome,
b_utenti.cf
FROM b_check_sessions
JOIN b_utenti ON b_check_sessions.codice_utente = b_utenti.codice
WHERE b_utenti.ruolo = 'USR'";
if (!empty($_SESSION["ente"])) {
$utenti = Ente::getUtentiFromModulo("guida",$_SESSION["ente"]->codice);
$sql .= " AND b_utenti.codice IN (".implode(",",$utenti).") ";
}
$ris_log = $pdo->go($sql,$bind);
if ($ris_log->rowCount() > 0) {
?>
| ID |
IP |
User |
Timestamp |
fetch(PDO::FETCH_ASSOC)) :
$id = substr(simple_decrypt($sess["sessionID"],$config["simple_decrypt"]["session"]),0,6);
?>
| = $id ?> |
= $sess["ip"] ?> |
= $sess["cognome"] ?> = $sess["nome"] ?> | = $sess["cf"] ?> |
= $sess["timestamp"] ?> |
}
include_once ($beRoot."/layout/bottom.php");
} else {
echo '';
die();
}
?>