-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminPage.php
More file actions
50 lines (41 loc) · 1.43 KB
/
adminPage.php
File metadata and controls
50 lines (41 loc) · 1.43 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
<?php
include 'Login/init.php';
if(!isset($_SESSION['admin'])){
header ('location:index.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>A Walk in the Bark</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="HomePage.css" rel="stylesheet" type="text/css" />
<script src="https://kit.fontawesome.com/c91294ea81.js" crossorigin="anonymous"></script>
</head>
<body>
<div class="header">
<i class="fas fa-dog fa-5x"></i><h1>A Walk in the Bark</h1>
<p><b>Dog walking</b> in Leeds</p>
</div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="navbar">
<a href="index.php"><i class="fa fa-fw fa-home"></i> Home</a>
<a href="Walkers.php"><i class="fa fa-fw fa-paw"></i> Walkers</a>
<a href="adminPage.php" class="active"><i class="fa fa-fw fa-cog"></i> Admin</a>
<a href="Login/loginform.php" class="right"><i class="fa fa-fw fa-user"></i> Login</a>
<?php
if(isset($_SESSION['user'])){
echo '<a href="profilePage.php" class="right"><i class="fa fa-fw fa-user"></i> Profile</a>';
}elseif(isset($_SESSION['admin'])){
echo '<a href="profilePage.php" class="right"><i class="fa fa-fw fa-user"></i> Profile</a>';
}
?>
</div>
<div class="footer">
<?php
echo '<a href="Login/logout.php">logout</a>' ;
?>
</div>
</body>
</html>