-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
profile.php
57 lines (53 loc) · 2.1 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
<?php
session_start();
if(! isset($_SESSION['user']))
header("Location: login.php");
?>
<!DOCTYPE html>
<html>
<head>
<title> Interrogate </title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="css/material.css">
<link rel="icon" href="images/icon1.png" >
<link type="text/css" rel="stylesheet" href="fonts/font.css">
</head>
<body id="pro">
<!-- navigation bar -->
<a href="index.php">
<div id="log">
<div id="i">i</div><div id="cir">i</div><div id="ntro">nterrogate</div>
</div>
</a>
<ul id="nav-bar">
<a href="index.php"><li>Home</li></a>
<a href="categories.php"><li>Categories</li></a>
<a href="contacts.php"><li>Contact</li></a>
<a href="ask.php"><li>Ask Question</li></a>
<a href="profile.php"><li id="home">Hi, <?php echo $_SESSION["user"]; ?></li></a>
<a href="logout.php"><li>Log Out</li></a>
</ul>
<!-- content -->
<div id="content">
<center>
<h1 id="hea"><?php echo "Welcome ".$_SESSION["user"]; ?></h1>
<div class="clearfix">
<div id="hea-det">
<p id="first">N</p><p class="tit">ame: </p>
<p class="det"><?php echo $_SESSION["name"]; ?></p><br>
<p id="first">E</p><p class="tit">mail: </p>
<p class="det"><?php echo $_SESSION["email"]; ?></p><br>
<p id="first">J</p><p class="tit">oin Date: </p>
<p class="det"><?php echo $_SESSION["date"]; ?></p>
</div>
<div id="pic"></div>
</div>
</center>
</div>
<!-- Footer -->
<div id="footer">
© 2017 • Interrogate Inc.
</div>
</body>
</html>