-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathresetpass.php
More file actions
59 lines (47 loc) · 1.43 KB
/
resetpass.php
File metadata and controls
59 lines (47 loc) · 1.43 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
53
54
55
56
57
58
59
<?php
include 'header.php';
$con=mysqli_connect('freedb.tech','freedbtech_Electronix','E@8jKnCmka8HekR','freedbtech_uploadf');
$tokenfromlink=$_GET['token'];
$email=$_GET['email'];
$sql="select * from user where email='$email' and token='$tokenfromlink'";
$rs=mysqli_query($con,$sql);
if(mysqli_num_rows($rs)>0){
?>
<style>
.controls{
box-shadow: 2px 1px cyan;
border-radius: 3px;
}
</style>
<body id="page-top " >
<div class="container">
<form action="db.php?email=<?php echo $email;?>" method="post">
<div class="form-group ">
<div class=" col-lg-6 col-sm-offset-2">
<h1> Change Password:</h1>
<div class="control-group">
<label for="new_password" class="control-label">New Password</label>
<div class="controls">
<input type="password" class="form-control" name="newpassword">
</div>
</div>
<div class="control-group">
<label for="confirm_password" class="control-label">Confirm Password</label>
<div class="controls">
<input type="password" class="form-control" name="confirmpassword">
</div>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-primary" name=" paschng"value="Save changes">
</div>
</div>
</div>
</form>
</div>
</body>
</html>
<?php
}else{
echo '<img src="images/secure.png">';
}
?>