-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.php
44 lines (33 loc) · 1.42 KB
/
navbar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
session_start();
include "./DataBase/connexionbdd.php";
?>
<nav class="topnav">
<header>
<a href="#" id="logo">SiteParDefaut</a>
<ul>
<li><a href="#">Peinture</a></li>
<li><a href="#">Caligraphie</a></li>
<li><a href="#">Poesie</a></li>
</ul>
<div class="login">
<?php if (isset($_SESSION['username'])) :
$usr=$_SESSION['username']; ?>
<?php if(isset($_SESSION['profil'])){ ?>
<img id ="profilpic" src="./DataBase/Images/<?= $_SESSION["profil"]; ?>">
<?php } else { ?>
<img id ="profilpic" src="./DataBase/Images/pardefautimg.jpg">
<?php } ?>
<?php echo $_SESSION['username']?>
<a href="./deconnect.php">Deconnection</a>
<?php else: ?>
<a class="cta" href="./formulaire.php"><button class="colog">Inscription</button></a>
<a class="cta" href="./login.php"><button class="colog">Connexion</button></a>
<?php endif ?>
</div>
</header>
</nav>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?php
echo $_SESSION['prenom'];
?>