This commit is contained in:
Kirito
2026-03-24 10:04:24 +01:00
parent 8615dbfe91
commit acf11e8071
7 changed files with 82 additions and 66 deletions

View File

@@ -1,16 +1,7 @@
<?php
session_start();
$role = isset($_SESSION['role']) ? $_SESSION['role'] : '';
?>
<nav>
<a href="../dashboard.php">Dashboard</a>
<?php if ($role === 'Admin'): ?>
| <a href="../admin_users.php">Gestion utilisateurs</a>
| <a href="../admin_settings.php">Paramètres</a>
<?php endif; ?>
| <a href="../logout.php">Se déconnecter</a>
<a href="../admin_users.php">Utilisateurs</a>
<a href="../admin_settings.php">Paramètres</a>
<a href="../logout.php">Déconnexion</a>
</nav>
<hr>