-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.php
31 lines (25 loc) · 1.22 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
<?php
$page_title = "User Authentication System - Profile";
include_once 'partials/headers.php';
include_once 'partials/parseProfile.php';
?>
<div class="container">
<div>
<h1>Profile</h1>
<?php if(!isset($_SESSION['username'])): ?>
<p class="lead">You are currently not signin <a href="login.php">Login</a> Not yet a member? <a href="signup.php">Signup</a> </p>
<?php else: ?>
<section class="col col-lg-7">
<table class="table table-bordered table-condensed">
<tr><th style="width: 20%;">Username:</th><td><?php if(isset($username)) echo $username; ?></td></tr>
<tr><th>Email:</th><td><?php if(isset($email)) echo $email; ?></td></tr>
<tr><th>Date joined:</th><td><?php if(isset($date_joined)) echo $date_joined; ?></td></tr>
<tr><th></th><td><a class="pull-right" href="edit-profile.php?user_identify=<?php if(isset($encode_id)) echo $encode_id; ?>"><span class="glyphicon glyphicon-edit"></span>Edit Profile</a> </td></tr>
</table>
</section>
<?php endif ?>
</div>
</div><!-- /.container -->
<?php include_once 'partials/footers.php'; ?>
</body>
</html>