-
Notifications
You must be signed in to change notification settings - Fork 82
/
change_password.php
56 lines (55 loc) · 1.9 KB
/
change_password.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
<?php
/*
KVM-VDI
Tadas Ustinavičius
Vilnius,Lithuania.
2017-06-06
*/
include ('functions/config.php');
require_once('functions/functions.php');
if (!check_session()){
header ("Location: $serviceurl/?error=1");
exit;
}
slash_vars();
set_lang();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="inc/js/kvm-vdi.js"></script>
</head>
<body>
<form id="PasswordValidator">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title"><?php echo _("Change password");?></h4>
</div>
<div class="modal-body form-group">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<input type="password" class="form-control" placeholder="<?php echo _("Enter password");?>" id="PasswordField" required>
</div>
<div class="col-md-3"></div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<input type="password" class="form-control text-danger" placeholder="<?php echo _("Repeat password");?>" id="PasswordConfirmField" required>
<span class="help-block hide" id="PasswordsDoNotMatch"><?php echo _("Passwords do not match");?></span>
</div>
<div class="col-md-3"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo _("Close");?></button>
<button type="button" class="btn btn-primary" id="ChangePasswordButton"><?php echo _("Save changes");?></button>
<input type="submit" class="hide">
</div>
</div>
</form>
</body>
</html>