<?php
if(!isset($_SESSION['UserData']['Username'])){
header("location:login.php");
exit;
}
?>
<div class="container-fluid py-2 px-4">
    <ul class="nav border rounded translucide">
        <li class="nav-item">
            <a class="nav-link active" aria-current="page" href="./">Gestion du catalogue</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="config_site.php">Configuration générale</a>
        </li>
        <li class="nav-item me-auto">
            <a class="nav-link" href="config_access.php">Configuration des utilisateurs</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="logout.php" title="Quitter l'admin"><?php echo $_SESSION['UserData']['Username']." (".$_SESSION['UserData']['Userstatus'].")"; ?> - Logout</a>
        </li>
    </ul>
</div>