-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
357 lines (258 loc) · 10.3 KB
/
login.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<?php include_once 'assets/private/init.php'; ?>
<title>royaldiamondinvestmnet.com</title>
<link href="https://fonts.googleapis.com/css?family=Cairo|Oswald:300,400,700|Roboto+Condensed|Roboto:400,500" rel="stylesheet">
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" href="faqstyle.css" type="text/css" />
<link rel="stylesheet" href="animate.css" type="text/css" />
<link rel="stylesheet" href="calcpopupstyle.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
<!--- banner tab script --->
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="../images/js/prefixfree.min.js"></script>
<!--- banner tab script --->
<!--
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="../images/js/back_move.js"></script>
-->
<!---- Wow script --->
<script src="https://cdnjs.cloudflare.com/ajax/libs/wow/0.1.12/wow.min.js"></script>
<script src="images/js/wow.js"></script>
<script>
new WOW().init();
</script>
<!---- Wow script --->
<!---- menu script --->
<script>
$(document).ready(function(){
$('.menu ul li').click(function(){
/* $('li').removeClass("active");
$(this).addClass("active");*/
});
});
</script>
<!---- menu script --->
<!-- PHP TAG -->
<?php
if (isset($_POST['userLogin'])) {
// Check for required fields
$required_fields = array('username', 'password');
// Loop through the $_POST array to check for required fields
foreach($_POST as $key=>$value) {
if (empty($value) && in_array($key, $required_fields)) {
$errors[] = "All fields are required.";
break;
}
}
// If no error
if (empty($errors)) {
// Assign values to user and profile classes
$user->username = trim($_POST['username']);
$user->password = trim($_POST['password']);
// If no error
if (!empty($user->username) && !empty($user->password)) {
// Hash Password
$user->password = md5($user->password);
if ($user->login()) {
$session->message('Logged in successfully');
redirectTo('dash.php');
}
else {
$errors[] = "Authentication failed.";
}
}
else {
$errors[] = "All fields are required.";
}
}
}
?>
<!-- PHP END TAG -->
</head>
<body>
<!----- header logo and menus ---->
<header>
<div id="wrapper" class="banner-bg">
<div class="wrap">
<div class="tops" align="center">
<div class="left wow fadeInDown">
<a href="index.php">
<img src="images/logo.png" />
</a>
</div>
<div class="right wow fadeInDown">
<div class="content">
<div class="img"><img src="images/mail.png" /></div>
<a href="contact.php" class="mail" style="padding-top: 15px;"><span>EMAIL SUPPORT</span> <br />contact@royaldiamond.com</a>
</div>
<div class="content1">
<div class="img"><img src="images/fb.png" /></div>
<a href="contact.php" class="fb" style="font-size:25px;"><span>Contact Us</span> Email</a>
</div>
</div>
</div>
</div>
<div id="wrapper" class="menu-bg">
<div class="wrap">
<div class="menu" align="center">
<div class="left">
<ul style="margin:0px; padding:0">
<li><a href="index.php">Home</a></li>
<li><a href="about.php">About Us</a></li>
<li><a href="register.php">Signup</a></li>
<li><a href="login.php">login</a></li>
<li><a href="?a=rules">Rules</a></li>
<li><a href="faq.php">FAQ</a></li>
<li><a href="contact.php">support</a></li>
</ul>
</div>
<div class="right">
<a href="login.php"> <i class="fa fa-lock"></i> Login</a>
<a href="register.php"><i class="fa fa-user "></i> Sign up</a>
</div>
</div>
</div>
</div>
<!----- header logo and menus ---->
<!------- banner ------>
</div>
</header>
<div class="clear"></div>
<!------- banner ------>
<div id="wrapper" class="sup_title-bg">
<div class="wrap">
<div class="sup_title">
<h1 class="">access account</h1>
<p><a href="index.php">Home</a>››<a href="login.php" class="active">login</a></p>
</div>
</div>
</div>
<div id="wrapper" class="contanierbg" style=" background-color:#030200; display:inline-table;">
<div class="wrap">
<div class="box6">
<center>
<!--
<script language=javascript>
function checkform() {
if (document.mainform.username.value=='') {
alert("Please type your username!");
document.mainform.username.focus();
return false;
}
if (document.mainform.password.value=='') {
alert("Please type your password!");
document.mainform.password.focus();
return false;
}
return true;
}
</script> -->
<form method=post name=mainform onsubmit="return checkform()" action="login.php" style="width:100%; margin:0;"><input type="hidden" name="form_id" value="16034034187646"><input type="hidden" name="form_token" value="2df99cc2672b9b52f73887c828acf6cf">
<input type=hidden name=a value='do_login'>
<input type=hidden name=follow value=''>
<input type=hidden name=follow_id value=''>
<div class="log_form">
<div class="left">
<div class="log_title">LOG INTO YOUR ACCOUNT</div>
<?php success($message); error($errors); ?>
<div class="log_box">
<div class="log_input">
<div class="log_img"><i class="fa fa-user" aria-hidden="true"></i></div>
<input type=text name=username value="<?php echo stickyForm('username'); ?>" class=inpts size=30 autofocus="autofocus" placeholder="Username">
</div>
</div>
<div class="log_box">
<div class="log_input">
<div class="log_img"><i class="fa fa-unlock-alt" aria-hidden="true"></i></div>
<input type=password name=password value='' class=inpts size=30 placeholder="Password">
</div>
</div>
<div class="log_val">
<a href="dash.php">DB</a>
<div class="log_text"><input type=submit value="Login" name="userLogin" class=sbmt></div>
</div>
<div class="rest_val">
<div class="log_text">Forgot password? <a href="?a=forgot_password" style="color:#ffa300;">Click here,</a> to reset your password.</div>
</div>
</div>
<div class="right">
<img src="images/bit_vid.png" />
<!--<div class="log_content">
<div class="cont_img"><img src="images/security.png" /></div>
<div class="cont_text">
<h2>Make Investment Safely</h2>
<p>Do not provide your login and password to anyone!</p>
</div>
</div>
<div class="log_content">
<div class="cont_img"><img src="images/password.png" /></div>
<div class="cont_text">
<h2>Forgotten the password ?</h2>
<p>It is very easy to restore the password. For this purpose select the "Forgot password?" button.</p>
</div>
</div>
</div>-->
</div>
</form>
</center>
</div>
</div>
</div>
<!------------- footer ------------->
<section>
<div id="wrapper" class="pay-bg">
<div class="wrap ">
<div class="pay wow fadeInUp" align="center">
<img src="images/pay.png" />
</div>
</div>
</div>
</section>
<footer>
<div id="wrapper" class="bottom-bg">
<div class="wrap">
<div class="bottom wow fadeInUp">
<div class="left">Copyright © 2020 <br /> Royal Diamond<br /><br /> All Rights Reserved.
</div>
<div class="middle">
<ul style="margin:0;">
<li><a href="about.php">About Us</a></li>
<li><a href="register.php">Get Started</a></li>
<li><a href="faq.php">FAQ</a></li>
<li><a href="?a=rules">Rules</a></li>
</ul>
<ul style="margin:0;">
<li><a href="login.php"> <i class="fa fa-lock"></i> Login</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="#">Confidential Policy</a></li>
</ul>
</div>
<div class="right">
<div class="loc"> <i class="fa fa-map "></i> Scheelegatan 112 28 Stockholm, Sweden</div>
<div class="loc2"> <i class="fa fa-globe "></i> Ticket support</div>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>
<div class="clear"></div>
<!------------- footer ------------->
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/5f4b4a711e7ade5df4452639/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
</body>
</html>