This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
user.php
71 lines (58 loc) · 1.94 KB
/
user.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
<?php
$PAGE['title'] = "User Control";
include 'inc/config.php';
include 'inc/sessions.php';
include 'inc/functions.php';
if (isset($_POST["action"])) {
switch ($_POST["action"]) {
case "changePassword":
changePassword($_SESSION, $_POST["password"]);
die("Done");
break;
default:
die();
}
}
?>
<!DOCTYPE html>
<html>
<head>
<?php include 'pageparts/head.php'; ?>
</head>
<body>
<div id="wrapper">
<?php include 'pageparts/nav.php'; ?>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">CJFreedom Panel <small>User Management</small></h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="well well-lg">
<h3>Change Password</h3>
<div class="form-horizontal" role="form">
<div class="form-group">
<label for="usernameChange" class="col-sm-2 control-label">Username</label>
<div class="col-sm-10">
<input id="usernameChange" class="form-control" value="<?php echo $_SESSION['user']['username'];?>" disabled/>
</div>
</div>
<div class="form-group">
<label for="changePassword" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="changePassword" placeholder="Password">
</div>
</div>
</div>
<button type="submit" class="btn btn-default pull-right" onclick="changeUserPassword();">Change Password</button>
<br />
</div>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<?php include 'pageparts/footerjs.php'; ?>
</body>
</html>