-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
93 lines (72 loc) · 3.18 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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
require_once( 'session.php' );
require_once( 'class.user.php' );
$auth_user = new USER();
$user_id = $_SESSION[ 'user_session' ];
$stmt = $auth_user->runQuery( 'SELECT * FROM users WHERE user_id=:user_id' );
$stmt->execute( array( ':user_id'=>$user_id ) );
$userRow = $stmt->fetch( PDO::FETCH_ASSOC );
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv = 'Content-Type' content = 'text/html; charset=utf-8' />
<link href = 'bootstrap/css/bootstrap.min.css' rel = 'stylesheet' media = 'screen'>
<link href = 'bootstrap/css/bootstrap-theme.min.css' rel = 'stylesheet' media = 'screen'>
<script type = 'text/javascript' src = 'jquery-1.11.3-jquery.min.js'></script>
<link rel = 'stylesheet' href = 'style.css' type = 'text/css' />
<title>welcome - <?php print( $userRow[ 'user_email' ] );
?></title>
</head>
<body>
<nav class = 'navbar navbar-default navbar-fixed-top'>
<div class = 'container'>
<div class = 'navbar-header'>
<button type = 'button' class = 'navbar-toggle collapsed' data-toggle = 'collapse' data-target = '#navbar' aria-expanded = 'false' aria-controls = 'navbar'>
<span class = 'sr-only'>Toggle navigation</span>
<span class = 'icon-bar'></span>
<span class = 'icon-bar'></span>
<span class = 'icon-bar'></span>
</button>
<a class = 'navbar-brand' href = 'http://www.codingcage.com'>Coding Cage</a>
</div>
<div id = 'navbar' class = 'navbar-collapse collapse'>
<ul class = 'nav navbar-nav'>
<li class = 'active'><a href = 'http://www.codingcage.com/2015/11/ajax-login-script-with-jquery-php-mysql.html'>Back to Article</a></li>
<li><a href = 'http://www.codingcage.com/search/label/jQuery'>jQuery</a></li>
<li><a href = 'http://www.codingcage.com/search/label/PHP'>PHP</a></li>
</ul>
<ul class = 'nav navbar-nav navbar-right'>
<li class = 'dropdown'>
<a href = '#' class = 'dropdown-toggle' data-toggle = 'dropdown' role = 'button' aria-haspopup = 'true' aria-expanded = 'false'>
<span class = 'glyphicon glyphicon-user'></span>
Hi' <?php echo $userRow['user_email']; ?> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#"><span class="glyphicon glyphicon-user"></span> View Profile</a></li>
<li><a href="logout.php?logout=true"><span class="glyphicon glyphicon-log-out"></span> Sign Out</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="clearfix"></div>
<div class="container-fluid" style="margin-top:80px;">
<div class="container">
<label class="h5">welcome : <?php print($userRow['user_name' ] );
?></label>
<hr />
<h1>
<a href = 'home.php'><span class = 'glyphicon glyphicon-home'></span> home</a>
<a href = 'profile.php'><span class = 'glyphicon glyphicon-user'></span> profile</a></h1>
<hr />
<p class = 'h4'>Another Secure Profile Page</p>
<p class = 'blockquote-reverse' style = 'margin-top:200px;'>
Programming Blog Featuring Tutorials on PHP, MySQL, Ajax, jQuery, Web Design and More...<br /><br />
<a href = 'http://www.codingcage.com/2015/04/php-login-and-registration-script-with.html'>tutorial link</a>
</p>
</div>
</div>
<script src = 'bootstrap/js/bootstrap.min.js'></script>
</body>
</html>