-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathadmin_page.php
41 lines (30 loc) · 883 Bytes
/
admin_page.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
<?php
@include 'config.php';
session_start();
if(!isset($_SESSION['admin_name'])){
header('location:index.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>admin page</title>
<!-- custom css file link -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<div class="content">
<h3>hi, <span>admin</span></h3>
<h1>welcome <span><?php echo $_SESSION['admin_name'] ?></span></h1>
<p>this is an admin page</p>
<a href="index.php" class="btn">login</a>
<a href="register_form.php" class="btn">register</a>
<a href="logout.php" class="btn">logout</a>
</div>
</div>
</body>
</html>