-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforgetpassword.php
83 lines (56 loc) · 3.03 KB
/
forgetpassword.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
72
73
74
75
76
77
78
79
80
81
82
83
<?php require 'ini/confg.php';?>
<?php require __DIR__.'/topheader.php';
if(isset($_GET['email']) and isset($_GET['code'])){
$email = filter_var($_GET['email'],FILTER_SANITIZE_EMAIL) ;
$code = filter_var($_GET['code'],FILTER_SANITIZE_STRING);
$cofg = new forgetpass();
$fg = $cofg->cheekuser($email,$code);
if($fg !== NULL){
foreach ($fg as $data){
}
}
}
if($data['email'] == $email and $data['active_code'] == $code){ ?>
<div class="container">
<div class="row"style="direction:rtl;">
<div class="col-md-3"></div>
<div class="col-md-6 bg-dark" style="margin :70px 15px ;height:370px">
<div class="p-3" >
<h2 class="mt-9 text-center"style="margin-top: 18px;
margin-bottom: 16px;
padding-top: 24px;">تحديث كلمه المرور</h2>
<form class="mt-4"id="forgetp" method="post">
<div class="row">
<div class="col-lg-12">
<div class="form-group">
<label class="text-light" for="pwd">كلمه المرور</label>
<input class="form-control" name="pass" id="pwd" type="password"
placeholder="ادخل كلمه المرور">
<input class="form-control"dir="auto" value="<?php echo isset($data['user_id'])? $data['user_id']:"";?>" name="id" type="hidden">
</div>
</div>
<div class="col-lg-12">
<div class="form-group">
<label class="text-light" for="pwd">تأكيد كلمه المرور</label>
<input class="form-control" name="cpass" id="pwd" type="password"
placeholder="تأكيد كلمه المرور">
</div>
</div>
<div id="masgef"class=" col-lg-12 masge11" ></div>
<div class="col-lg-12 text-center">
<button type="submit" class="btn btn-block btn-danger">دخول</button>
</div>
</div>
</form>
</div>
</div>
<div class="col-md-3"></div>
</div>
</div>
<?php
}else {
header("Location:login.php");
exit();
}
?>
<?php require 'lassfooter.php';?>