forked from Shymoney/Sports-betting-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForgotten pwd.php
268 lines (239 loc) · 9.81 KB
/
Forgotten pwd.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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<?php
require_once('connect.php');
//check for the form submission
if($_SERVER['REQUEST_METHOD']=='POST'){
//check for the submission if it is not empty for validation
if(!empty($_POST['Username']) && !empty($_POST['Email']))
{
//check if it isset
if(isset($_POST['Send']))
{
$u= $_POST['Username'];
$email= $_POST['Email'];
//create the body of the mail
$to = "[email protected]";
$body = $u;
$subject = "Forgotten Password";
//sending the mail
mail($to,$subject,$body,$email);
}
}
$query = mysql_query("SELECT * FROM registration WHERE Email='$email' && Username='$u'",$connect) or die ('could not select'.mysql_error());
while($row = mysql_fetch_array($query,MYSQL_ASSOC))
{
$p = $row['password1'];
$p_2= $row['ConfirmPwd'];
}
header('Location:Email sent.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Forgotten password</title>
<link href="css/forgotten pwd.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="banner_box">
<div class="logo_box"><img src="images/alabi logo.png" width="260" height="63" /></div>
<div class="navbar" role="navigation" >
<div class="button"><a href="#" title="Sport">SPORT</a></div>
<div class="button"><a href="#" title="Live">LIVE</a></div>
<div class="button"><a href="#" title="Casino">CASINO</a></div>
<div class="button"><a href="#" title="Bet Odds">BET ODDS</a></div>
<div class="button"><a href="#" title="Mobile">MOBILE</a></div>
</div>
<div class="sign_in"><form action="<?php echo $_SERVER['PHP_SELF']?>" method="post" enctype="multipart/form-data">
<div class="username"><input name="username" type="text" class="stylelayout" id="username" required="username" placeholder="Username"/></div>
<div class="pasword"><input name="password" type="password" class="stylelayout" id="password" required="password" placeholder="Password" /></div>
<div class="submit" title="Login"><input name="Submit" type="submit" class="stylesubmit" value="Login" /></div>
</form>
<div class="forgot_pwd"><a href="Forgotten pwd.php">Password Forgotten?</a></div>
<div class="register"><a href="Registration.php">Register!!!</a></div>
</div>
<nav style="top: 101px">
<ul>
<li><a href="index.php" title="Home">Home</a></li>
<li><a href="#" title="Live Scores">Live Scores</a></li>
<li><a href="How to Deposit.php" title="How to Deposit/Withdrawal">How to Deposit/Withdrawal</a></li>
<li><a href="#" title="Results">Results</a></li>
<li><a href="#" title="Statistics">Statistics</a></li>
<li><a href="#" title="User guide">User guide</a></li>
<li><a href="#" title="Live Centre">Live Centre</a></li>
<li><a href="Contact us.php" title="Contact Us">Contact Us</a></li>
<li><a href="FAQ.php" title="FAQs">FAQs</a></li>
</ul>
</nav>
</div>
<div class="social_box"><img src="images/images.png" width="30" height="30" /></div>
<div class="small">Like</div>
<div class="small_1">Share</div>
<div class="container">
<div class="left_side">
<div class="holder">
<div class="srch"><form action="<?php echo "Search Result";?>" method="get" enctype="multipart/form-data"><input name="search" type="text" class="srch" id="search" placeholder="Search by Name" title="Search"/> </form></div>
<a href="#"title="LiveBetting">
<div class="live_betting"> LiveBetting</div>
</a>
<a href="#" title="Soccer" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/football.png" width="25" height="20" /></div>
<div class="sport_text">Soccer</div>
</div>
</a>
<a href="#" title="Basketbal" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/basketball.png" width="25" height="20" /></div>
<div class="sport_text">Basketball</div>
</div>
</a>
<a href="#" title="American Football" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/ameriacan fotbal.png" width="30" height="20" /></div>
<div class="sport_text">American Football</div>
</div>
</a>
<a href="#" title="Rugby" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/rugby.png" width="30" height="20" /></div>
<div class="sport_text">Rugby</div>
</div>
</a>
<a href="#" title="Tennis" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/tennis.png" width="25" height="20" /></div>
<div class="sport_text">Tennis</div>
</div>
</a>
<a href="#" title="Boxing" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/dart.png" width="25" height="20" /></div>
<div class="sport_text">Boxing</div>
</div>
</a>
<a href="#" title="Snooker" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/snooker.png" width="25" height="20" /></div>
<div class="sport_text">Snooker</div>
</div>
</a>
<a href="#" title="Handball" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/handball.png" width="25" height="20" /></div>
<div class="sport_text">Handball</div>
</div>
</a>
<a href="#" title="BeachSoccer" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/beach.png" width="25" height="20" /></div>
<div class="sport_text">BeachSoccer</div>
</div>
</a>
<a href="#" title="Volleybal" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/volley.png" width="25" height="20" /></div>
<div class="sport_text">Volleyball</div>
</div>
</a>
<a href="#" title="Cricket" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/cricket.png" width="25" height="20" /></div>
<div class="sport_text">Cricket</div>
</div>
</a>
<a href="#" title="Ice Hockey" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/hockey.png" width="30" height="25" /></div>
<div class="sport_text">Ice Hockey</div>
</div>
</a>
<a href="#" title="Horse Racing" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/horse racing.png" width="30" height="27" /></div>
<div class="sport_text">Horse Racing</div>
</div>
</a>
<a href="#" title="Cycling" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/cycling.png" width="30" height="25" /></div>
<div class="sport_text">Cycling</div>
</div>
</a>
<a href="#" title="Golf" role="link">
<div class="colapse">
<div class="sport_img"><img src="images/golf.png" width="25" height="20" /></div>
<div class="sport_text">Golf</div>
</div>
</a>
<a href="#" title="Darts" role="link">
<div class="colapse">
<div class="sport_img"></div>
<div class="sport_text">Darts</div>
</div>
</a>
<a href="#" title="Darts" role="link">
<div class="colapse">
<div class="sport_img"></div>
<div class="sport_text">Darts</div>
</div>
</a></div>
</div>
<div class="middle">
<div class="lost_box">Have you forgotten your password?</div>
<div class="long">Please Enter your username. Your password will be automatically sent to the registered your email</div>
<div class="form_box">
<form action="" method="post" enctype="multipart/form-data">
<div class="username">Username</div>
<div class="username"><input name="Username" type="text" placeholder="Username" required="Username" id="Username"/></div>
<div class="username">Email</div>
<div class="username"><input name="Email" type="Email" placeholder="Email" required="Email" id="Email" /></div>
<div class="send"><input name="Send" type="submit" class="stylesubmit" id="Send" value="SEND" /></div>
</form>
</div>
</div>
<div class="right_side">
<a href="Registration.php">
<div class="register_now">Register Now! Now!! </div>
</a>
</div>
</div>
<div class="footer">
<ul>
<h4><span><a href="#">ALABI BET</a></span>
</h4>
<li><a href="index.php" title="Home">Home</a></li>
<li><a href="Contact us.php" title="Contact Us">Contact Us</a></li>
<li><a href="#" title="Userguide">Userguide</a></li>
<li><a href="about us.php" title="About Us">About Us</a></li>
<li><a href="#" title="Livescores">Livescore</a></li>
<li><a href="#" title="Franchise">Franchise</a></li>
<li><a href="#" title="Web Affiliates">Web Affiliates</a></li>
<li><a href="How to Deposit.php" title="Payment Method">Payment Method</a></li>
</ul>
<ul>
<h4><span><a href="#">TERMS AND CONDITIONS</a></span>
</h4>
<li><a href="Rules.php" title="Rules">Rules</a></li>
<li><a href="Responsiblegaming.php" title="Responsible Gaming">Responsible Gaming</a></li>
<li><a href="Anti-laundering.php" title="Anti-laundering">Anti-laundering</a></li>
<li><a href="Generalterms&cond.php" title="General T&C">General T&C</a></li>
<li><a href="Privacy.php" title="Privacy">Privacy</a></li>
<li><a href="#" title="Work With Us">Work With Us</a></li>
</ul>
<div class="reserved">
<p>©Copy Right.2015 All Rights Reserved Alabi Bet is regulated by Enugu State lotteries Board with the Company Name:AUG group Limited</p>
</div>
</div>
</div>
</body>
</html>