-
-
Notifications
You must be signed in to change notification settings - Fork 209
Expand file tree
/
Copy pathmemberpage.php
More file actions
29 lines (22 loc) · 832 Bytes
/
memberpage.php
File metadata and controls
29 lines (22 loc) · 832 Bytes
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
<?php require('includes/config.php');
//if not logged in redirect to login page
if (! $user->is_logged_in()){
header('Location: login.php');
exit();
}
//define page title
$title = 'Member Page';
//include header template
require('layout/header.php');
?>
<div class="container">
<h3><?php echo htmlspecialchars($_SESSION['username'], ENT_QUOTES); ?></h3>
<p><a href="logout.php">Logout</a></p>
<?php for($i=0; $i < 2; $i++){ ?>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis veritatis nemo ad recusandae labore nihil iure qui eum consequatur, officiis facere quis sunt tempora impedit ullam reprehenderit facilis ex amet!
<?php } ?>
</div>
<?php
//include header template
require('layout/footer.php');
?>