-
Notifications
You must be signed in to change notification settings - Fork 39
/
index_try.php
397 lines (352 loc) · 13.7 KB
/
index_try.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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<?php
//connecting to our database
require('connect.php');
if(isset($_POST['Submit']))
{
$u= mysql_real_escape_string($_POST['Username']);
$p= mysql_real_escape_string($_POST['password1']);
//query the database
$login= mysql_query("SELECT *
FROM registration
WHERE Username='$u' && password1='$p'",$connect) or die('could not login'.mysql_error());
$num= mysql_num_rows($login);
while($row= mysql_fetch_array($login))
{
$id=$row['REG_id'];
$user=$row['Username'];
$pwd=$row['password1'];
$confm=$row['ConfirmPwd'];
$view=$row['view'];
}
//this is where we set our cookies
if($num>0)
{
$sql= mysql_query("update registration set view=view+1",$connect) or die('could not update'.mysql_error());
setcookie('user',$user,time()+3600,'/');
header('location:Userprofile.php');
}
else{echo '<script type="text/javascript">
var msg="wrong username or password";
alert(msg);
</script>';}
}
$query = mysql_query("SELECT * FROM livematches order by match_id desc limit 0,7",$connect) or die('could not select'.mysql_error());
$count=0;
while($value= mysql_fetch_array($query,MYSQL_ASSOC))
{
$match_id[]= $value['match_id'];
$category[]= $value['category'];
$league[]= $value['leaguename'];
$country[]= $value['country'];
$home[]= $value['home'];
$draw[]= $value['draw'];
$away[]= $value['away'];
$over[]= $value['over'];
$under[]= $value['under'];
$score[]= $value['score'];
$score_1[]= $value['score1'];
$time[]= $value['time'];
$club_home[]= $value['hometeam'];
$club_away[]= $value['awayteam'];
$count++;
}
$query_2= mysql_query("SELECT * FROM upcomingevents
order by match_id desc limit 0,15 ",$connect) or die('could not select'.mysql_error());
$rows=0;
while($hold= mysql_fetch_array($query_2,MYSQL_ASSOC))
{
$match_id[]=$hold['match_id'];
$tm[]=$hold['time'];
$date[]=$hold['date'];
$hw[]=$hold['homewin'];
$drw[]=$hold['draw'];
$aw[]=$hold['awaywin'];
$hd[]=$hold['homedraw'];
$dc[]=$hold['doublechance'];
$ad[]=$hold['awaydraw'];
$ov[]=$hold['over'];
$un[]=$hold['under'];
$GG[]=$hold['GoalGoal'];
$NG[]=$hold['NoGoal'];
$hteam[]=$hold['hometeam'];
$ateam[]=$hold['awayteam'];
$rows++;
}
?>
<!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>Alabi Bet</title>
<link href="css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
</script>
<style type="text/css">
body {
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body bgcolor="#2A2E37">
<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">
<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 $_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="password1" type="password" class="stylelayout" id="password1" 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="" method="post" 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">
<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">
<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">
<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">
<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">
<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">
<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">
<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">
<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">
<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">
<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">
<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">
<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">
<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">
<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">
<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">
<div class="colapse">
<div class="sport_img"></div>
<div class="sport_text">Darts</div>
</div>
</a>
<a href="#" title="Darts">
<div class="colapse">
<div class="sport_img"></div>
<div class="sport_text">Darts</div>
</div>
</a></div>
</div>
<div class="middle">
<div class="image_slider"><img name="" src="images/helpdesk.jpg" width="680" height="259" alt="" style="background-color: #3300CC" /></div>
<div class="upcoming_matches">
<div class="header">Live Matches</div>
<div class="current_date">Tuesday,5 October 2015</div>
<?php for($a = 0; $a<$count; $a++){?>
<div class="matches">
<div class="head">
<div class="score_box">
<div class="digits_box"><?php echo $score[$a]; ?></div>
<div class="digits_box1"><?php echo $score_1[$a];?></div>
<div class="minutes"><?php echo $time[$a] ;?></div>
</div>
<div class="club_box">
<div class="club_match"><?php echo $club_home[$a] ;?></div>
<div class="club_match_1"><?php echo $club_away[$a]; ?></div>
<div class="league_type"><?php echo $league[$a];?> <?php echo'Code:'.$match_id[$a];?></div>
</div>
<div class="header_row">
<div class="short_odds">1</div>
<div class="short_odds">X</div>
<div class="short_odds">2</div>
<div class="short_odds">Over</div>
<div class="short_odds">Under</div>
</div>
<div class="short_box"><?php echo $home[$a];?></div>
<div class="short_box"><?php echo $draw[$a]; ?></div>
<div class="short_box"><?php echo $away[$a];?></div>
<div class="short_box"><?php echo $over[$a]; ?></div>
<div class="short_box"><?php echo $under[$a];?></div>
</div>
</div>
<?php }?>
</div>
<div class="header">Upcoming Matches/Events</div>
<div class="matches">
<div class="head">
<div class="short">Time</div>
<div class="long">Matches</div>
<div class="short">1</div>
<div class="short">X</div>
<div class="short">2</div>
<div class="short">1X</div>
<div class="short">12</div>
<div class="short">X2</div>
<div class="short">Over</div>
<div class="short">Under</div>
<div class="short">GG</div>
<div class="short">NG</div>
<div class="short">Others</div>
</div>
<?php for($y=0; $y<$rows; $y++) {?>
<div class="matches">
<div class="time_box"><?php echo $tm[$y];?></div>
<div class="long_box">
<div class="Mtch_date"><?php echo $hteam[$y];?>-<?php echo $ateam[$y];?></div>
<div class="Mtch_date_1"><?php echo $date[$y];?> Code:<?php echo $match_id[$y];?></div>
</div>
<div class="short_box"><?php echo $hw[$y];?></div>
<div class="short_box"><?php echo $drw[$y];?></div>
<div class="short_box"><?php echo $aw[$y];?></div>
<div class="short_box"><?php echo $hd[$y];?></div>
<div class="short_box"><?php echo $dc[$y];?></div>
<div class="short_box"><?php echo $ad[$y];?></div>
<div class="short_box"><?php echo $ov[$y];?></div>
<div class="short_box"><?php echo $un[$y];?></div>
<div class="short_box"><?php echo $GG[$y];?></div>
<div class="short_box"><?php echo $NG[$y];?></div>
<div class="others_box">+13</div>
</div>
<?php }?>
</div>
</div>
</div>
</div>
<div class="right_side">
<a href="Registration.php">
<div class="register_now">Register Now! Now!! </div>
</a>
<div class="Alabibet_info_two">Betslip</div>
<div class="betslip_txt">Click on the odds to add your betslip</div>
<div class="pic_box"><img src="images/book.jpg" width="216" height="179" /></div>
<div class="pic_box"><img src="images/agent_number.jpg" width="216" height="179" /></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>