start site
This commit is contained in:
16
include/nav.php
Normal file
16
include/nav.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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>
|
||||
</nav>
|
||||
<hr>
|
||||
Reference in New Issue
Block a user