-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav.php
33 lines (33 loc) · 945 Bytes
/
nav.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
<?php
if (!isset($_SESSION['login']))
$_SESSION['login'] = NULL;
if (!isset($_SESSION['alert']))
$_SESSION['alert'] = NULL;
if (!isset($_POST['login']))
$_POST['login'] = NULL;
if (!isset($_POST['email']))
$_POST['email'] = NULL;
if (!isset($_POST['password']))
$_POST['password'] = NULL;
if (!isset($_SESSION['picpath']))
$_SESSION['picpath'] = NULL;
if (!isset($_POST['password']))
$_POST['password'] = NULL;
if (!isset($_POST['password']))
$_POST['password'] = NULL;
if ($_SESSION['login']) {
?>
<nav>
<div class="index"><a href="index.php">CAMAGRU</a></div>
<ul class="menu">
<li class="galery"><a href="gallery.php"> Galerie photos</a></li>
<li class="account"><a href="account.php"> Compte</a></li>
<li class="logout"><a href="logout.php"> Se Déconnecter</a></li>
</ul>
</nav>
<?php }
else {
?> <nav id="nolog">
<div class="index"><a href="gallery.php">CAMAGRU</a></div>
</nav>
<?php } ?>