-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
31 lines (31 loc) · 1010 Bytes
/
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 = 'My profile';
require_once('includes/load.php');
// Checkin What level user has permission to view this page
page_require_level(3);
?>
<?php
$user_id = (int)$_GET['id'];
if(empty($user_id)):
redirect('home.php',false);
else:
$user_p = find_by_id('users',$user_id);
endif;
?>
<?php include_once('layouts/header.php'); ?>
<div class="row">
<div class="col-md-4">
<div class="panel profile">
<div class="jumbotron text-center bg-deepred">
<img class="img-circle img-size-2" src="uploads/users/<?php echo $user_p['image'];?>" alt="">
<h3><?php echo first_character($user_p['name']); ?></h3>
</div>
<?php if( $user_p['id'] === $user['id']):?>
<ul class="nav nav-pills nav-stacked">
<li><a href="edit_account.php"> <i class="glyphicon glyphicon-edit"></i> Edit profile</a></li>
</ul>
<?php endif;?>
</div>
</div>
</div>
<?php include_once('layouts/footer.php'); ?>