-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
38 lines (34 loc) · 891 Bytes
/
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
29
30
31
32
33
34
35
36
37
38
<?php
session_start();
error_reporting("E-NOTICE");
?>
<header>
<div class="wrapper">
<h1 class="logo">Simple Car Rental System</h1>
<a href="#" class="hamburger"></a>
<nav>
<?php
if(!$_SESSION['email'] && (!$_SESSION['pass'])){
?>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="index.php">Rent Cars</a></li>
<li><a href="contact.php">Contact</a></li>
<li><a href="account.php">Client Login</a></li>
<li><a href="login.php">Admin Login</a></li>
</ul>
<?php
} else{
?>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="status.php">View Status</a></li>
<li><a href="message_admin.php">Message Admin</a></li>
<li><a href="admin/logout.php">Logout</a></li>
</ul>
<?php
}
?>
</nav>
</div>
</header>