-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
63 lines (54 loc) · 1.78 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
<!--
Arthur ==> ADAMS PAUL OHIANI
Title ==> ADVANCED WEB LOGIN OPTION(PATTERN)
-->
<?php
require_once("application/session.php");
$user = new USER();
$user_id = $_SESSION['user_session'];
$stmt = $user->runQuery("SELECT * FROM users WHERE user_id=:user_id");
$stmt->execute(array(":user_id"=>$user_id));
$row=$stmt->fetch(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home | AuthX</title>
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="css/header-fixed.css">
<link href='http://fonts.googleapis.com/css?family=Cookie' rel='stylesheet' type='text/css'>
</head>
<body>
<header class="header-fixed">
<div class="header-limiter">
<h1><a href="#">Auth<span>X</span></a></h1>
<nav>
<a href="home.php">Home</a>
<a>|</a>
<a href="profile.php">Profile</a>
<a>|</a>
<a href="changepass.php">Change Password</a>
<a>|</a>
<a href="changepat.php">Change Pattern</a>
<a>|</a>
<a href="application/logout.php?logout=true" class="logout-btn">Logout</a>
</nav>
</div>
</header>
<!-- You need this element to prevent the content of the page from jumping up -->
<div class="header-fixed-placeholder"></div>
<!-- The content of your page would go here. -->
<div class="menu">
<h1>Default profile page</h1>
</div>
<div>
<h2 style="text-align:center; margin-top:40px">Dear <?php echo $row['user_name']; ?>, your email address is <?php echo $row['user_email']; ?><p><a href="#">Click here for full documentation</a></p></h2>
</center>
<!-- Your scripts. -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- Your scripts. -->
</body>
</html>