-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.php
34 lines (32 loc) · 1.04 KB
/
profile.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
<?php
require_once "manager.php";
// cannot access the page if there is no session
if(!isset($_SESSION["email"]))
{
header("Location: index.php");
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Profile Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<?php include "navbar.php"?>
<div class="container mt-3">
<div class="row">
<div class="col-md-6 ">
<ul class="list-group">
<li class="list-group-item active">Account Info</li>
<li class="list-group-item">Username: <?php echo $usersinfo["username"]?></li>
<li class="list-group-item">Email: <?php echo $usersinfo["email"]?></li>
<li class="list-group-item">Date of Registration: <?php echo $usersinfo["registerdate"]?></li>
<li class="list-group-item">Authority: <?php echo $usersinfo["authority"]?></li>
</ul>
</div>
</div>
</div>
</body>
</html>