Deconnexion

This commit is contained in:
Esteban
2026-05-29 12:39:20 +02:00
parent 52391d0bda
commit 3c40745ecf
3 changed files with 26 additions and 2 deletions
+11 -1
View File
@@ -21,11 +21,21 @@ session_start();
<!-- Module de navigation -->
<nav>
<a href="./../index.php">Accueil</a>
<a href="./projects.php">Projets</a>
<a href="./contact.php">Contact</a>
<?php
if (isset($_SESSION['user_id'])){
?>
<a href="../functions/disconnect.php">Deconnexion</a>
<?php
} else {
?>
<a href="./login.php">Connexion</a>
<?php
}
?>
<!-- Fonctionnalité future changement de thème dark / light et panneau admin -->
</nav>