-
Notifications
You must be signed in to change notification settings - Fork 52
/
userpage.php
55 lines (34 loc) · 1.44 KB
/
userpage.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
<?php
/*
UserPie Version: 1.0
http://userpie.com
*/
require_once("models/config.php");
/*
* Uncomment the "else" clause below if e.g. userpie is not at the root of your site.
*/
if (!isset($loggedInUser))
header('Location: login.php');
// else
// header('Location: /');
exit();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UserPie | <?php echo $websiteName; ?> </title>
<?php require_once("head_inc.php"); ?>
</head>
<body>
<?php require_once("navbar.php"); ?>
<div id="content">
<h1>Welcome</h1>
<p>Welcome to your account page <strong><?php echo $loggedInUser->display_username; ?></strong></p>
<p>You are a <strong><?php $group = $loggedInUser->groupID(); echo $group['group_name']; ?></strong></p>
<p>You joined on <?php echo date("l \\t\h\e jS Y",$loggedInUser->signupTimeStamp()); ?> </p>
<p>This page doesn't really do anything special. It's up to you to create something interesting and useful based on the framework we have provided.</p>
<p>Using UserPie you can build just about anything: a blog, content management system, discussion forum, social network...</p>
</div>
</body>
</html>