-
Notifications
You must be signed in to change notification settings - Fork 0
/
generic_error.php
37 lines (37 loc) · 967 Bytes
/
generic_error.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
<!DOCTYPE html>
<html>
<head><title>Oops...</title>
<link rel="stylesheet" type="text/css" href="navbar.css" />
<link rel="stylesheet" type="text/css" href="generic_error.css" />
</head>
<body>
<nav>
<ul class="navigation">
<?php
if(isset($_SESSION["logged"])){
if($_SESSION["uid"]==1){
echo '<li><a href="admin.php">Home</a></li>';
}else{
echo '<li><a href="choice.php">Home</a></li>';
}
}
else{
echo '<li><a href="home.php">Home</a></li>';
}
?>
<li><a href="contact.php">Contact</a></li>
<li><a href="about.php">About</a></li>
<li><a href="login.php">Login</a></li>
<li><a href="signup.php">Signup</a></li>
<?php
if(isset($_SESSION["logged"])){
echo '<li style="float:right"><a href="logout.php">Logout</a></li>';
}
?>
</ul>
</nav>
<div class="already">
<p class="center"> Oops... Looks like something went wrong. Why don't you try again? </p>
</div>
</body>
</html>