-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
61 lines (53 loc) · 1.72 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
<?php
session_start();
require_once 'includes/dbh.inc.php';
include_once 'includes/header.inc.php';
$username = DB("username");
$password = DB("password");
$email = DB("email");
$date = DB("createDate");
$ProPic = DB("profilePicture");
if(DB("admin")==1){
$status = "admin";
} elseif (DB("admin")==0) {
$status = "user";
}
?>
<link rel="stylesheet" type="text/css" href="css/profile.css">
<div class="container">
<div class="row justify-content-center">
<div class="col-auto">
<div class="gallery d-flex">
<div>
<table class="table">
<tr>
<h1><img class="logo" src="img/user<?php echo $ProPic?>.png" alt="ProfilePicture" width="50" height="50">Profile</h1>
</tr>
<tr>
<th>Username:</th>
<td><?php echo $username?></td>
</tr>
<tr>
<th>Password:</th>
<td><?php echo "*****"?></td>
</tr>
<tr>
<th>E-Mail:</th>
<td><?php echo $email?></td>
</tr>
<tr>
<th>Created on:</th>
<td><?php echo $date?></td>
</tr>
<tr>
<th>Status:</th>
<td><?php echo $status?></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>