-
Notifications
You must be signed in to change notification settings - Fork 4
/
forgetpassword.php
200 lines (164 loc) · 5.06 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
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
192
193
194
195
196
197
198
<?php
session_start();
include("include/dbcon.php");
include("include/function.php");
include("include/md5salt.php");
require 'include/phpmailer/PHPMailerAutoload.php';
setGetCookie();
$wrongpass = "";
@recoverPassword(); //hiding phpmailer unwanted error msg using @
?>
<!DOCTYPE html>
<html>
<head>
<title>AZONE - Kurunegala</title>
<!--Add CSS Files-->
<link rel="stylesheet" type="text/css" href="resources/css/styles.css">
<link rel="stylesheet" type="text/css" href="resources/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="resources/font-awesome/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,300,400,700,900" rel="stylesheet">
</head>
<body>
<!-- Start Top-->
<div class="top">
<!-- Start Container-->
<div class="container">
<div class="col-md-6 offer">
<a href="#" class="btn btn-primary btn-sm">
<?php
welcomeUser();
?>
</a>
<a href="#">
Cart Total Price : Rs<?php priceCart();?>, No of items : <?php countCart(); ?>
</a>
</div>
<div class="col-md-6">
<!-- Start Menu-->
<ul class="menu">
<?php
switchLoginLogout();
?>
</ul>
</div>
</div>
</div>
<!-- Navigation Bar Start-->
<div class="navbar navbar-default" id="navbar">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand home" href="index.php">
<img src="resources/img/logo.jpg" alt="logo" class="logo">
</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation">
<span class="sr-only">Toggle Navigation</span>
<i class="fa fa-align-justify"></i>
</button>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#search">
<span class="sr-only">Toggle Search</span>
<i class="fa fa-search"></i>
</button>
</div>
<div class="navbar-collapse collapse" id="navigation">
<div class="padding-nav">
<ul class="nav navbar-nav navbar-left">
<li>
<a href="index.php">Home</a>
</li>
<li>
<a href="store.php">Store</a>
</li>
<li>
<a href="cart.php">Cart</a>
</li>
<li>
<a href="checkout.php">My Account</a>
</li>
<li>
<a href="contact.php">Contact Us</a>
</li>
</ul>
</div>
<a class="btn btn-info navbar-btn right" href="cart.php">
<i class="fa fa-shopping-cart"></i>
<span><?php countCart(); ?> items in cart</span>
</a>
<div class="navbar-collapse collapse right">
<button type="button" class="btn btn-info navbar-btn" data-toggle="collapse" data-target="#search">
<span class="sr-only">Toggle Search</span>
<i class="fa fa-search"></i>
</button>
</div>
<div class="collapse clearfix" id="search">
<form class="navbar-form" method="get" action="result.php">
<div class="input-group">
<input class="form-control" type="text" placeholder="Search" name="user_query" required>
<span class="input-group-btn">
<button type="submit" value="Search" name="search" class="btn btn-info">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
</div>
</div>
</div>
</div>
<div id="content">
<div class="container">
<div class="col-md-12">
<ul class="breadcrumb">
<li>
<a href="index.php">Home</a>
</li>
<li>
<a href="register.php">Register</a>
</li>
</ul>
</div>
<div class="col-md-12">
<div class="box">
<div class="box-header">
<center>
<img src="resources/img/logo.jpg" alt="" class="logo">
<h2>Recover Password</h2>
<p class="text-muted">Recover your password</p>
</center>
</div>
<form action="forgetpassword.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="">Email</label>
<input type="email" class="form-control" name="cus_email" required>
</div>
<center>
<div class="form-warn" style="font-size: 12px !important;font-weight: 600 !important;letter-spacing: 2px !important;color: red; ">
<?php if($wrongpass != "") echo $wrongpass?>
</div>
<br>
<div class="g-recaptcha" data-sitekey="6LdScHYUAAAAAE9U_bKNKWJacA5WvGEIetd3lhbV"></div>
</center>
<br>
<div class="text-center">
<button type="submit" name="recoverpass" class="btn btn-success">
<i class="fa fa-envelope"></i> Recover Password
</button>
<br>
<br>
<p>Cannot login to your account? contact <a href="contact.php" target="_blank">Support Center</a></p>
</div>
</form>
</div>
</div>
</div>
</div>
<!--Footer Start-->
<?php
include("include/foot.php");
?>
<!--Add JavaScript Files-->
<script src="resources/js/jquery.min.js"></script>
<script src="resources/js/bootstrap.min.js"></script>
<!-- Google Recaptcha -->
<script src='https://www.google.com/recaptcha/api.js'></script>
</body>
</html>