forked from Bkoech/gbvis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
user_profile.php
executable file
·46 lines (36 loc) · 1.11 KB
/
user_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
35
36
37
38
39
40
41
42
43
44
45
46
<?php
//welcome.php
$page_title = "User Profile | GBV";
$current_page = "User Profile";
require_once 'includes/global.inc.php';
//check to see if they're logged in
if(!isset($_SESSION['logged_in'])) {
header("Location: login.php");
}
//get the user object from the session
$user = unserialize($_SESSION['user']);
include "includes/Dash_header.php";include "includes/topbar.php"; //TA:60:1
?>
<div id="sidebar">
<center><h3 style="text-size:18px; font-family: TStar-Bol"></h3></center>
<div class="sidebar-nav">
<?php
include "includes/sidebar.php";
?>
</div>
</div>
<div id="main-content_with_side_bar">
<div id="bread-crumbs">
<!--breadcrumbs-->
</div>
<div id="content-body">
<center><h3 class="page-title">Home</h3></center>
<div class="profile-data" align="left">
Hey there, <?php echo $user->username; ?>. You've been registered and logged in. Welcome! <a href="logout.php">Log Out</a> | <a href="index.php">Return to Homepage</a>
</div>
</div>
</div>
</div>
<?php
include "includes/footer.php";
?>