-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.php
56 lines (50 loc) · 1.16 KB
/
admin.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Admin</title>
<link rel="stylesheet" type="text/css" href="navbar.css" />
<link rel="stylesheet" type="text/css" href="admin.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="menu1">
<div class="upperleft">
<form action="delete_stuff.php">
<input type="submit" value="Delete Stuff" id="del">
</form>
</div>
<div class="upperright">
<form action="change_stuff.php">
<input type="submit" value="Change Stuff" id="cha">
</form>
</div>
</div>
</body>
</html>