forked from Shymoney/Sports-betting-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrivacy.php
246 lines (200 loc) · 7.13 KB
/
Privacy.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
<?php
session_start();
require_once "connect.php";
function SeleectAllUsers() {
//call the instance of the class
$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>';
}else{
//query the database
$u = $obj->connect->quote($_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>';
}else{
//query the database for the password
$p = $obj->connect->quote($_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= fetch(PDO::FETCH_ASSOC)) {
$id=$row['REG_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>';
}
}
return true;
} //here i execute the function
SeleectAllUsers();
?>
<!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>privacy</title>
<link href="css/privacy.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">
<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="" 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="#" 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="Alabibet_info"> AlabiBet Info</div>
<a href="about us.php">
<div class="colapse">
<div class="sport_text">About Us</div>
</div>
</a>
<a href="Tutorial.php">
<div class="colapse">
<div class="sport_text">Tutorials</div>
</div>
</a>
<a href="Responsiblegaming.php">
<div class="colapse">
<div class="sport_text">Responsible Gaming</div>
</div>
</a>
<a href="Contact us.php">
<div class="colapse">
<div class="sport_text">Contact Us</div>
</div>
</a>
<div class="Alabibet_info">Terms & Conditions</div>
<a href="Generalterms&cond.php">
<div class="colapse">
<div class="sport_text">General T&C</div>
</div>
</a>
<a href="Privacy.php">
<div class="colapse">
<div class="sport_text">Privacy</div>
</div>
</a>
<a href="Livebetting.php">
<div class="colapse">
<div class="sport_text">Live Betting</div>
</div>
</a>
</div>
</div>
<div class="middle">
<div class="header">PRIVACY</div>
<div class="txtbox">
</div>
</div>
<div class="right_side">
<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>
<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="#" title="Results">Results</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>