-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.php
53 lines (45 loc) · 1.42 KB
/
update.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
<?php
include 'includes/dB.php';
userLogin();
if(!isset($_SESSION['userName']))
{
header("Location:userLogin.php");
exit();
session_abort();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin DashBoard</title>
<link href="https://fonts.googleapis.com/css2?family=Titillium+Web&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style1.css">
<script src="https://kit.fontawesome.com/469fe33d6f.js" crossorigin="anonymous"></script>
</head>
<body>
<section class="update">
<div class="updateContainer">
<h3>Change Password</h3>
<form method="POST">
<label>Old Password</label>
<br>
<input type="password" name="oldPassword"><br>
<label>New Password</label>
<br>
<input type="password" name="newPassword">
<br>
<label>Repeat Password</label><br>
<input type="password" name="repeatPassword">
<br>
<button type="submit" name="changePass">Update</button>
</form>
<?php
include_once 'includes/dB.php';
changePassword();
?>
</div>
</section>
</body>
</html>