Accueil';
if (is_logged()) {
$nav .= 'Planning';
$nav .= 'Sauveteurs';
}
if (has_role('gestionnaire') || has_role('administration')) {
$nav .= 'Gestion';
}
if (has_role('administration')) {
$nav .= 'Admin';
}
if (is_logged()) {
$nav .= 'Déconnexion';
$session = 'Connecté : ' . htmlentities($_SESSION['login']) . ' (' . ($_SESSION['role'] ?: 'lecture') . ')';
} else {
$nav .= 'Connexion';
$session = 'Non connecté';
}
// Notification flash
$notif = '';
if (!empty($_SESSION['notification'])) {
$notif = '' . htmlentities($_SESSION['notification']) . '
';
unset($_SESSION['notification']);
}
?>
SSF — Gestion des sauveteurs
= $session ?>
= $notif ?>