-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·28 lines (26 loc) · 1.16 KB
/
header.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
<header>
<nav>
<ul class="menu">
<li class="logo"><a href="HomePage.php">Healthy Living</a></li>
<li class="item"><a href="HomePage.php">Αρχική</a></li>
<li class="item"><a href="Sport.php">Άθληση</a></li>
<li class="item"><a href="Diet.php">Διατροφή</a></li>
<li class="item"><a href="Calculators.php">Μετρητές υγείας</a></li>
<?php
if(isset($logged) && $logged) {
echo "
<li class='item button'><a href='#'>Γεία σου $user</a></li>
<li class='item button secondary'><a href='logout.php'>Αποσύνδεση</a></li>
";
$_SESSION['$user'] = $user;
} else {
echo "
<li class='item button'><a href='Login.php'>Log In</a></li>
<li class='item button secondary'><a href='Register.php'>Sign Up</a></li>
";
}
?>
<li class="toggle"><a href="#"><i class="fas fa-bars"></i></a></li>
</ul>
</nav>
</header>