-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·60 lines (50 loc) · 1.51 KB
/
Copy pathheader.php
File metadata and controls
executable file
·60 lines (50 loc) · 1.51 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<link rel="shortcut icon" href="/admin/ressources/favicon.png" type="image/x-icon">
<?php
@session_start();
$isUserLoggedIn = isset($_SESSION['userid']);
$isAdmin = isset($_SESSION['isAdmin']) && $_SESSION['isAdmin'] ;
?>
<!-- HEADER -->
<header>
<a id="accueil" href="/index.php">
<img src="/assets/logo.png" alt="Logo de l'ADIIL">
</a>
<nav>
<ul>
<li>
<a href="/events.php">Événements</a>
</li>
<li>
<a href="/news.php">Actualités</a>
</li>
<li>
<a href="/shop.php">Boutique</a>
</li>
<li>
<a href="/grade.php">Grades</a>
</li>
<?php if ($isUserLoggedIn): ?>
<li>
<a href="/agenda.php">Agenda</a>
</li>
<?php endif; ?>
<li>
<a href="/about.php">À propos</a>
</li>
<?php if ($isUserLoggedIn): ?>
<li>
<a href="/account.php">Mon compte</a>
</li>
<?php if ($isAdmin): ?>
<li>
<a id="header_admin" href="/admin/admin.php">Panel Admin</a>
</li>
<?php endif; ?>
<?php else: ?>
<li>
<a href="/login.php">Se connecter</a>
</li>
<?php endif; ?>
</ul>
</nav>
</header>