forked from Shymoney/Sports-betting-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
627 lines (504 loc) · 23.7 KB
/
index.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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
<?php
session_start();
ob_start();
//connecting to our database
require_once "connect.php";
//a method to handle the select User username & password query
function SeleectAllUsers() {
$obj = DatabaseConnect::getInstance();
if(isset($_POST['Submit'])) {
//check if the username field is empty
if(empty($_POST['Username'])) {
//print out a an error msg
echo '<script>
var msg = " Username Cannot be empty";
alert(msg);
</script>';
return;
}else{
//query the database
$u = $obj->secureTxt($_POST['Username']);
}
//check if password field is empty
if(empty($_POST['password1'])) {
//print out an error msg
echo '<script>
var msg = " Password Cannot be empty";
alert(msg);
</script>';
return;
}else{
//query the database for the password
$p = $obj->securePwd($_POST['password1']);
}
//query the database
$login= $obj->connect->prepare("SELECT *
FROM registration
WHERE Username='$u' && Password='$p'");
//bind parameters
$login->bindParam(':Username', $u );
$login->bindParam(':Password', $p);
//execute query
$login->execute();
if($login->rowCount() > 0){
while($row= $login->fetch(PDO::FETCH_ASSOC)) {
$id=$row['User_ID'];
$user=$row['Username'];
$pwd=$row['password1'];
$confm=$row['ConfirmPwd'];
$view=$row['view'];
}
$query = $obj->connect->prepare("UPDATE registration SET view=view+1");
$query->execute();
$_SESSION['Username'] = $row['Username'];
header('location:Userprofile.php');
}
else{
echo'<script type="text/javascript">
var msg="wrong username or password";
alert(msg);
</script>';
}
}
} //here i execute the function
SeleectAllUsers();
//call the instance of the class
$obj = DatabaseConnect::getInstance();
$query = $obj->connect->prepare("SELECT * FROM livematches order by match_id desc limit 0,7");
$query->execute();
//count the rows
$result = 0;
while($value = $query->fetch(PDO::FETCH_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'];
$result++;
// var_dump($result);
}
//return true;
// }
//excute the function
//SelectLiveMatches();
//function SelectUpcomingEvent(){
//call the instance of the class
$obj = DatabaseConnect::getInstance();
//select from the database
$query_2= $obj->connect->prepare("SELECT * FROM upcomingevents
order by match_id desc limit 0,15 ");
$query_2->execute();
//check the rows
$count_2 = $query_2->rowCount();
while($hold = $query_2->fetch(PDO::FETCH_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'];
}
//execute the function
//SelectUpcomingEvent();
?>
<!doctype html>
<html manifest="text/cache-manifest">
<head>
<!--meta tags---->
<meta charset="utf-8">
<meta http-equiv="content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="AlabiBet.com, nigeria, betting, bet, Alabi, alabi bet, naija, 9ja, Alabibet, betting website, livescore, predict, premiership betting, sportsbetting, odds, Live, Racing, horse racing, virtual game, virtual soccer, virtual football, win, win big, mobile, virtual, deposit, Soccer, Bonus, sports, betting bonus">
<meta name="description" content="Number one sport betting site in Nigeria. For fast deposit and withdrawal, visit AlabiBet.com Place bets on premiership matches with the best available odds."><base>
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE">
<meta name="google-site-verification" content="KElNVUl-UFP7_YUhfEJt-Bz1Rf3juWSTADskgP_1D1c">
<meta name="msvalidate.01" content="11CE253C71CD5153071856CAC7F454C8">
<meta name="Subject" content="The Best Sports Betting Site in Nigeria">
<meta name="Robots" content="Index,Follow">
<title>AlabiBet - Best Sports Betting Premiership, Champions League and more.</title>
<!-----Css----->
<link href="css/index.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="images/acf7ef943fdeb3cbfed8dd0d8f584731.ico" type="image/x-icon">
<!---------Css--------------------------->
<link rel="stylesheet" type="text/css" href="css/index.css">
<!---javascript ---->
<script type="text/javascript" src="jquery/jquery-1.11.3.js"></script>
<script type="text/javascript">
document.documentElement.id = "js";
var deltaTime = new Date().getTime() - 1000*1459506844;
</script>
<script type="text/javascript">
var $j = jQuery.noConflict();
</script>
<script type="text/javascript" src="themes/jquery.cookie.js"></script>
<script type="text/javascript" src="themes/init_betcart.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
jQuery(document).bind('keypress', function ( e ){
var elem = e.target, type = elem.type, $form;
if ( (type === "text" || type === "password") && e.keyCode === 13 && ($form = jQuery(e.target).closest('form')).length && $form.attr('action') ) {
$form.submit();return false;}})
;/*]]>*/
</script>
<script type="text/javascript" src="themes/betcart-template.js"></script>
<script type="text/javascript" src="themes/save_odds_plugin.js"></script>
<script type="text/javascript" src="js/bet_cart_of_naija_bet.js"></script>
<script type="text/javascript">
js_messages = {"Odds value for this market should be between 1.01 and 1000":"Odds value for this market should be between 1.01 and 1000"};
var live_menu_station = {},
select_monitor_id = null;
</script>
<script type="text/javascript">
jQuery(function($){
$('a').each(function(){
if ($(this).attr('rev')) {
var id = $(this).attr('id').split(':');
if (!$(this).attr('onClick')) {
$(this).attr('onClick', 'javascript:addToCookie('+id[1]+');');
}
}
});
});
</script>
<script type="text/javascript" src="themes/v32/js/jquery.plugins.js"></script>
<!-- main top slider -->
<script type="text/javascript" language="javascript" src="themes/v32/js/jquery.carouFredSel-5.2.3.js"></script>
<!--[if IE 8]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]--><!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="css/media-queries.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/odds.updater.js"></script>
<script type="text/javascript" src="js/socket.odds.updater.js"></script>
</head>
<script type="text/javascript">
$j(document).ready(function($){window. addEventListener ("click", clickPage, true);function clickPage(){$.cookie('last_activity', (new Date()).getTime());}});
</script>
<style type="text/css">
body {
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
<!-- <script type="text/javascript">
jQuery(document).ready(function(e) {
$("#search").mouseover(function() {
$(this).css("background-color","#CCC")
$("#search").mouseout(function(){
$(this).css("background-color","#FFF")
});
});
jQuery(".right_side").click(function(){
var div = $(".right_side")
div.animate({height:'300px',opacity:'0.4'},"slow");
div.animate({width:'300px',opacity:'0.8'},"slow");
div.animate({height:'100px',opacity:'0.4'},"slow");
div.animate({width:'100px',opacity:'0.8'},"slow");
div.animate({left:'100px'},"slow");
div.animate({fontSize:'3em'},"slow");
$(".right_side").stop();
});
jQuery(".short_box").mouseover(function(){
$(".short_box").css("background-color","#0F0").slideDown("slow");
});
});
</script> -->
</head>
<body style="bgcolor:#2A2E37" onLoad="">
<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" id="nav-mainAct"><a href="#" title="Sport">SPORT</a></div>
<div class="button" id="nav-liveAct"><a href="#" title="Live">LIVE</a></div>
<div class="button"><a href="#" title="Casino">CASINO</a></div>
<div class="button" id="nav-virtualAct"><a href="#" title="Virtual">VIRTUAL</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" placeholder="Username"/>
</div>
<div class="pasword">
<input name="password1" type="password" class="stylelayout" id="password1" 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>
<div class="accordion" data-role="accordion">welcome</div>
<nav style="top: 101px" role="navigation">
<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="search.php" method="get" onSubmit="button_search(); return false;">
<input name="search" type="text" class="srch" id="searchbox" placeholder="Search by Name" title="Search" onClick="button_search();">
</form>
</div>
<a href="javascript:;"title="LiveBetting" onClick="">
<div class="live_betting"> LiveBetting</div>
</a>
<a href="javascript:;" title="Soccer">
<div class="colapse">
<div class="sport_img">
<img src="images/football.png" width="25" height="20"></div>
<div class="sport_text"><span style="font-weight:500;">Soccer</span></div>
</div>
</a>
<a href="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" 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="javascript:;" title="Darts">
<div class="colapse">
<div class="sport_img"></div>
<div class="sport_text">Darts</div>
</div>
</a>
<a href="javascript:;" 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"><?php echo "";?>Tuesday,5 October 2015</div>
<?php for($a = 0; $a < $result; $a++) { ?>
<div class="matches">
<div class="head">
<div class="score_box">
<div class="digits_box"><?php if(isset($score[$a])) { echo $score[$a]; }?></div>
<div class="digits_box1"><?php if(isset($score_1[$a])) { echo $score_1[$a]; }?></div>
<div class="minutes"><?php if(isset($time[$a])) { echo $time[$a] ; }?></div>
</div>
<div class="club_box">
<div class="club_match"><?php if(isset($club_home[$a])) {echo $club_home[$a] ;} ?></div>
<div class="club_match_1"><?php if(isset($club_away[$a])) {echo $club_away[$a]; } ?></div>
<div class="league_type"><?php if(isset($league[$a])) {echo $league[$a];} ?> <?php if(isset($match_id[$a])) {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>
<a id=":905969342" href="javascript:;" class="market_id1756407314 b-link b-link_ev b-cell_hover" rev='{"odds":4.24,"oid":"905969342","mid":"1112549","market_id":"1756407314","event":"Swansea City vs Chelsea FC","type":"1x2","type_title":"Match Odds","beton":"Swansea City","beton_outright_market":"","sport":"s","event_status":"notstarted","bir_delay":8,"lid":"214","multiplicity":1,"tax_percent":"0","default_stake":"0.00","lay":0,"live_minute":"","live_result":"","pitchers":[],"scope_key":"FE","scope":"fe","scope_title":"Full event","sport_name":"Soccer","country_name":"England","league_name":"English Premier League","season":"","matchday":"","event_details":[],"enabled":true,"popular_code":"","beton_val":0}'><b class="g-round b-index_block_size odds_value"><div class="short_box" id="home"><?php echo $home[$a];?></div></b></a>
<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<$count_2; $y++) {?>
<div class="matches">
<div class="time_box"><?php if(isset($tm[$y])) {echo $tm[$y];}?></div>
<div class="long_box">
<div class="Mtch_date"><?php if(isset($hteam[$y])) {echo $hteam[$y];}?> - <?php if(isset($ateam[$y])) { echo $ateam[$y]; }?></div>
<div class="Mtch_date_1"><?php if(isset($date[$y])) {echo $date[$y];}?> Code:<?php if(isset($match_id[$y])) { echo $match_id[$y]; }?></div>
</div>
<div class="short_box" onMouseOver="" id="1"><?php echo $hw[$y];?></div>
<div class="short_box" onMouseOver="" id="2"><?php echo $drw[$y];?></div>
<div class="short_box" onMouseOver="" id="3"><?php echo $aw[$y];?></div>
<div class="short_box" onMouseOver="" id="4"><?php echo $hd[$y];?></div>
<div class="short_box" onMouseOver="" id="5"><?php echo $dc[$y];?></div>
<div class="short_box" onMouseOver="" id="6"><?php echo $ad[$y];?></div>
<div class="short_box" onMouseOver="" id="7"><?php echo $ov[$y];?></div>
<div class="short_box" onMouseOver="" id="8"><?php echo $un[$y];?></div>
<div class="short_box" onMouseOver="" id="9"><?php echo $GG[$y];?></div>
<div class="short_box" onMouseOver="" id="10"><?php echo $NG[$y];?></div>
<div class="others_box">+13</div>
</div>
<?php }?>
</div>
</div>
</div>
</div>
<div class="right_side" id="right">
<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>
<!------------end of metro js script------------------------------------------->
</body>
</html>