-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccount.php
More file actions
executable file
·52 lines (52 loc) · 1.83 KB
/
Copy pathaccount.php
File metadata and controls
executable file
·52 lines (52 loc) · 1.83 KB
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
<?php
include "header.php";
?>
<div class="index-info">
<span class="info">User </span><?php echo $db->getUsername($userid); ?><br>
<span class="info">Email </span><?php echo $db->getUserEmail($userid); ?><br>
</div>
<div class="group first-group account-group">
<h1>Change Account Details</h1>
</div>
<form action="includes/account.inc.php" method="POST">
<div class="group account-group">
<input type="text" name="username" value="<?php echo $db->getUsername($userid); ?>">
<span class="highlight"></span>
<span class="bar"></span>
<label>Username</label>
</div>
<div class="group account-group">
<input type="text" name="email" value="<?php echo $db->getUserEmail($userid); ?>">
<span class="highlight"></span>
<span class="bar"></span>
<label>E-mail</label>
</div>
<button class="btn-draw" type="submit" name="info-submit"><span>Confirm</span></button>
</form>
<div class="group first-group account-group">
<h1>Change Password</h1>
</div>
<form action="includes/pwdreset.inc.php" method="POST">
<div class="group account-group">
<input type="password" name="old-pwd" required>
<span class="highlight"></span>
<span class="bar"></span>
<label>Old Password</label>
</div>
<div class="group account-group">
<input type="password" name="pwd" required>
<span class="highlight"></span>
<span class="bar"></span>
<label>New Password</label>
</div>
<div class="group account-group">
<input type="password" name="re-pwd" required>
<span class="highlight"></span>
<span class="bar"></span>
<label>Repeat Password</label>
</div>
<button class="btn-draw" type="submit" name="account-pwd-submit"><span>Confirm</span></button>
</form>
<?php
include "footer.php"
?>