-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaccount.php
More file actions
63 lines (39 loc) · 1.68 KB
/
account.php
File metadata and controls
63 lines (39 loc) · 1.68 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
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php require_once( 'includes/header.php' ); ?>
<?php require_once( 'includes/navigation.php' ); ?>
<div class="container"> <?php
if( empty( $loggedInUser ) ) { ?>
<br /><br />
<div class="row"> <?php
if( !empty( $_SESSION['errors'] ) ) { ?>
<div class="col-xs-12"> <?php
errorBlock( $_SESSION['errors'] ); ?>
</div> <?php
}
if( !empty( $_SESSION['messages'] ) ) { ?>
<div class="col-xs-12"> <?php
messageBlock( $_SESSION['messages'] ); ?>
</div> <?php
} ?>
<div class="col-xs-6 pull-left">
<?php require_once( 'login-include.php' ); ?>
</div>
<div class="col-xs-6 pull-right">
<?php require_once( 'register-include.php' ); ?>
</div>
</div> <?php
if( !empty( $_SESSION['errors'] ) ) {
$_SESSION['errors'] = null;
}
if( !empty( $_SESSION['messages'] ) ) {
$_SESSION['messages'] = null;
}
} else { ?>
<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> <?php
} ?>
<!--closing div tag for container class is in footer -->
<?php require_once( 'includes/footer.php' ); ?>