-
Notifications
You must be signed in to change notification settings - Fork 10
/
reset-password.php
191 lines (139 loc) · 5.79 KB
/
reset-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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?php
$filepath = realpath(dirname(__FILE__));
include ($filepath.'/app/lib/Session.php');
Session::init();
Session::checkUserLogin();
include ($filepath.'/app/lib/Database.php');
spl_autoload_register(function($class){
include_once 'app/classes/'.$class.".php";
});
$db = new Database();
$usr = new Users();
$fr = new Frontend();
?>
<?php
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: pre-check=0, post-check=0, max-age=0");
header("Pragma: no-cache");
header("Expires: Mon, 6 Dec 1977 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!--====== Required meta tags ======-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<?php
$header_contents = $fr->selectfrontendpart();
if ($header_contents) {
while ($result = $header_contents->fetch_assoc()) {
?>
<!--====== Title ======-->
<title><?php if (isset($result['title'])) {
echo $result['title'];
} ?></title>
<!--====== Favicon Icon ======-->
<link rel="shortcut icon" href="<?php if (isset($result['favicon'])) {
echo $result['favicon'];
} else{ echo "assets/images/icons/favicon.png";}?>" type="image/png">
<?php }} ?>
<!--====== Google Fonts ======-->
<link href="https://fonts.googleapis.com/css?family=Nunito&display=swap" rel="stylesheet">
<!-- animate css-->
<link href="assets/css/animate.css" rel="stylesheet" media="screen">
<!-- Icofont Icons css-->
<link rel="stylesheet" href="assets/icofont/icofont.min.css">
<!-- normalize css-->
<link href="assets/css/normalize.css" rel="stylesheet" media="screen">
<!--====== Bootstrap css ======-->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<!--====== Style css ======-->
<link rel="stylesheet" href="assets/css/authotication.css">
<!--====== Style css ======-->
<link rel="stylesheet" href="assets/css/responsive.css">
</head>
<body>
<!-- Prealoder -->
<div class="spinner_body">
<div class="spinner"></div>
</div>
<!-- Prealoder -->
<!--====== Start Main Wrapper Section======-->
<div class="wrap">
<!-- page BODY -->
<!-- ========================================================= -->
<div class="page-body animated slideInDown">
<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -->
<!--LOGO-->
<div class="login-text">
<?php
$header_contents = $fr->selectfrontendpart();
if ($header_contents) {
while ($result = $header_contents->fetch_assoc()) {
?>
<!--====== Title ======-->
<h3 class="text-center"><?php if (isset($result['front_name'])) {
$front_name = $result['front_name'];
if (isset($front_name)) {
$words=str_word_count($front_name, 1);
echo "<span class='benzi'>$words[0]</span>".' '.$words[1].' '.$words[2].' '.$words[3].' '.$words[4];
}
} ?></h3>
<!--====== Favicon Icon ======-->
<?php }} else{?>
<h3 class="text-center">
<span class="benzi">BENZI</span> - Login/User Management </h3>
<?php } ?>
</div>
<div class="box">
<!--FORGOT PASSWPRD FORM-->
<div class="panel mb-none">
<div class="panel-content bg-scale-0">
<form method="POST" id="reset_password" action="" role="form" >
<h4 class="text-center">Forgot your password?</h4>
<div class="form-group mt-md">
<div id="msg"></div>
</div>
<div class="form-group mt-3">
<span class="input-with-icon">
<input type="email" class="form-control" name="email" id="email" placeholder="Email">
<i class="icofont-email"></i>
</span>
</div>
<div class="form-group">
<button type="submit" name="reset_password" class="btn theme-primary-btn btn-primary btn-block"> Reset Password</button>
</div>
<div class="form-group text-center">
You remembered? <a href="login.php">Sign in!</a>
</div>
</form>
</div>
</div>
</div>
<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -->
</div>
</div>
<!--====== End Main Wrapper Section======-->
<!--====== JQuery from CDN ======-->
<script src="assets/js/jquery.min.js"></script>
<!--====== Bootstrap js ======-->
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<!--====== datepicker js ======-->
<script src="assets/js/moment-with-locales.min.js"></script>
<script src="assets/js/bootstrap-datetimepicker.min.js"></script>
<!--====== select2.min.js ======-->
<script src="assets/js/select2.min.js"></script>
<!--====== dataTables js ======-->
<script src="assets/js/dataTables.bootstrap4.min.js"></script>
<script src="assets/js/jquery.dataTables.min.js"></script>
<!--====== Chart.min js ======-->
<script src="assets/js/Chart.bundle.min.js"></script>
<!--====== wow.min js ======-->
<script src="assets/js/wow.min.js"></script>
<!--====== Main js ======-->
<script src="assets/js/script.js"></script>
</body>
</html>