-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
112 lines (88 loc) · 1.69 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
session_start();
include('config.php');
?>
<!-- PHP CODE STARTS HERE -->
<?php
// CHECKING IF A SESSION W'LOGGEDIN HAS BEEN GENERATED
if (!$_SESSION['LoggedIn']) {
echo"<script type='text/javascript'>
alert('YOU ARE NOT LOGGED IN YET!');
window.location.href='index.php';
</script>";
}
include('userdata.php');
?>
<!-- HTML CODE STARTS HERE -->
<!DOCTYPE html>
<html>
<head>
<title>Member's Area | Arijit Banerjee</title>
</head>
<body>
<font face="verdana,arial">
<style type='text/css'>
.a_left {
float: left;
#width:33.33333%;
text-align:left;
}
.a_center {
float: center;
#width:33.33333%;
text-align:center;
}
.a_right {
float: right;
#width:33.33333%;
text-align:right;
}
</style>
<div id='menu'>
<!--<p class='a_left'>Hi <?php echo $name; ?>, Welcome<p align='right'></p>-->
<p class='a_right'>Menu : <a href='home.php'>Home</a> | <a href='profile.php'>My Profile</a> | <a href="logout.php?changepass=1">Change Password</a> | <a href='logout.php'>Log Out</a></p>
</div>
<br><br><br><br>
<style>
table#t1 {
border-collapse: collapse;
}
th, td {
padding: 15px;
}
</style>
<center>
<br><br><h2>MY PROFILE</h2><br><br>
</center>
<table border="1" align="center" id="t1">
<tr>
<th>
NAME
</th>
<th>
EMAIL
</th>
<th>
PASSWORD
</th>
<th>
IP Address
</th>
</tr>
<?php
// PRINTING DATA OUTPUT IN TABLE
echo "<tr>";
echo "<td><center> $name </center></td>";
echo "<td><center> $email </center></td>";
echo "<td><center> $pass </center></td>";
echo "<td><center> $ip </center></td>";
echo "<tr>";
?>
</table>
<?php
mysqli_close($conn);
?>
<!-- PHP CODE ENDS HERE -->
</body>
</html>
<!-- HTML CODE ENDS HERE -->