-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuser.php
More file actions
35 lines (35 loc) · 1.24 KB
/
Copy pathuser.php
File metadata and controls
35 lines (35 loc) · 1.24 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
<?php $title = "User";
session_start();
?>
<html>
<?php
include("head.php");
?>
<div class="container">
<?php
include("menu.php");
if(isset($_SESSION["login"])){
?>
<pageheader>User</pageheader>
<form action="change_password.php" method="POST">
<table>
<tr><td>Username</td><td><input type="text" value="<?php echo $_SESSION['username']; ?>" name="username" readonly></td></tr>
<tr><td>Mail</td><td><input type="text" value="<?php echo $_SESSION['usermail']; ?>" name="mail" readonly></td></tr>
<tr><td>Password</td><td><input type="text" style="-webkit-text-security: disc;" name="password"></td></tr>
<tr><td colspan="2"><input type="submit" value="Change Password"></td></tr>
</table>
</form>
<br>
<a href = "logout.php" class="c-r">Logout</a>
<?php
} else {
?>
You are not logged in.
<?php
}
?>
<?php
include("footer.php");
?>
</div>
</html>