Actualiser nav.php
This commit is contained in:
15
nav.php
15
nav.php
@@ -1,5 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
$role = isset($_SESSION['role']) ? $_SESSION['role'] : '';
|
||||||
|
?>
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<a href="dashboard.php">Dashboard</a> |
|
<a href="../dashboard.php">Dashboard</a>
|
||||||
<a href="logout.php">Se déconnecter</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>
|
||||||
</nav>
|
</nav>
|
||||||
<hr>
|
<hr>
|
||||||
Reference in New Issue
Block a user