-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.php
More file actions
418 lines (415 loc) · 23.8 KB
/
index.php
File metadata and controls
418 lines (415 loc) · 23.8 KB
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
<?php
require("ajax/functions.php");
if($userInfo)
// header("Location: markets.php");
header("Location: demoMarkets.php");
?><!DOCTYPE html>
<html lang="en-us" class="no-js">
<head>
<meta charset="utf-8">
<title>LEGEND</title>
<meta name="description" content="The description should optimally be between 150-160 characters.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Madeon08">
<!-- ================= Favicon ================== -->
<!-- Standard -->
<link rel="shortcut icon" href="img/favicon.png">
<!-- Retina iPad Touch Icon-->
<link rel="apple-touch-icon" sizes="144x144" href="img/favicon-retina-ipad.png">
<!-- Retina iPhone Touch Icon-->
<link rel="apple-touch-icon" sizes="114x114" href="img/favicon-retina-iphone.png">
<!-- Standard iPad Touch Icon-->
<link rel="apple-touch-icon" sizes="72x72" href="img/favicon-standard-ipad.png">
<!-- Standard iPhone Touch Icon-->
<link rel="apple-touch-icon" sizes="57x57" href="img/favicon-standard-iphone.png">
<!-- ============== Resources style ============== -->
<link rel="stylesheet" href="css/style.index.css" />
<!-- Modernizr runs quickly on page load to detect features -->
<script src="js/modernizr.custom.js"></script>
<style>html, body{ overflow: none;} .form-control{text-align: center; background: #FFFFFF; border: none; -webkit-border-radius: 0; -moz-border-radius: 0; -ms-border-radius: 0; border-radius: 0; box-shadow: none; height: 50px; font-weight: 600; outline: medium none; padding: 0 1em; width: 100%; margin: auto;} .btn.btn-lg.submit{border: 2px solid #0fe0ba; -webkit-border-radius: 0; -moz-border-radius: 0; -ms-border-radius: 0; border-radius: 0; font-family: "Open Sans", "Helvetica Neue", "Lucida Grande", Arial, Verdana, sans-serif; background: #0fe0ba; color: #FFFFFF; height: 50px; padding: 1em 0; font-size: 1em; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1; width: 70%; margin: 20px auto 0; -webkit-transition: all 0.3s cubic-bezier(0, 0, 0.58, 1); -moz-transition: all 0.3s cubic-bezier(0, 0, 0.58, 1); -ms-transition: all 0.3s cubic-bezier(0, 0, 0.58, 1); -o-transition: all 0.3s cubic-bezier(0, 0, 0.58, 1); transition: all 0.3s cubic-bezier(0, 0, 0.58, 1);}</style>
</head>
<body>
<!-- Page preloader -->
<div id="loading">
<div id="preloader"> <span></span> <span></span> </div>
</div>
<!-- Overlay -->
<div class="global-overlay">
<canvas id="constellationel"></canvas>
<div class="overlay">
<!-- Lines Overlay -->
<div class="overlay-dash"></div>
</div>
</div>
<!-- START - Home Part -->
<section id="home-wrap">
<!-- Stars Overlay - Uncomment the next 3 lines to activate the effect-->
<!-- <div id='stars'></div><div id='stars2'></div><div id='stars3'></div> -->
<div class="content">
<!-- Your logo --><img src="img/logo.png" alt="" class="brand-logo text-intro opacity-0" />
<h1 class="text-intro opacity-0"><span class="polyfy-title">We are the Legend</span></h1>
<p class="text-intro opacity-0">The most innovative crypto option platform.
<br> Sign up now for a demo account.</p> <a href="#" id="open-more-info" data-target="info-wrap" class="light-btn text-intro opacity-0">More information</a> <a data-dialog="somedialog" class="action-btn trigger text-intro opacity-0">Login / Signup</a> </div>
<!-- /. content -->
<!-- Social icons -->
<div class="social-icons text-intro opacity-0"> <a href="#"><i class="fa fa-facebook"></i></a> <a href="#"><i class="fa fa-twitter"></i></a> <a href="#"><i class="fa fa-google-plus"></i></a> <a href="#"><i class="fa fa-linkedin"></i></a> </div>
<!-- /. social-icons -->
</section>
<!-- END - Home Part -->
<!-- START - More Informations Part -->
<section id="info-wrap">
<div class="hero">
<div class="center-text">
<h3 class="darky">Everything you need.</h3>
<p>Hi, <strong>We are</strong> the Legend, your new template ready to use. Handmade, precisely built with the famous Bootstrap Framework. Bonjour, <strong>Nous sommes</strong> la Légende, votre nouveau template prêt à l'emploi. Fait main, construit avec précision grâce au célèbre Framework Bootstrap. Привет, <strong>Мы</strong> Легенда, ваш новый шаблон готов к использованию. Ручной, четко выстроенная с известным Framework Bootstrap. 嗨,<strong>我们</strong>的联想,新模板就可以使用。手工制作的,恰恰与著名引导框架建成</p>
</div>
<!-- /. center-text -->
</div>
<!-- /. hero -->
<div class="content">
<div class="photo-line">
<div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery">
<!-- Item -->
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject" class="col-xs-12 col-sm-6 col-lg-6 clear-second">
<!-- Link to the picture and to open the gallery / Fill up well the data-size property -->
<a class="box-picture" href="img/gallery-1.jpg" itemprop="contentUrl" data-size="1920x1280">
<!-- Your picture --><img src="img/gallery-1.jpg" itemprop="thumbnail" alt="This is my work" class="img-responsive" />
<div class="text-center">
<h4>The bridge</h4>
<p>May 14, 2016</p>
</div>
</a>
<!-- Picture's description for the gallery -->
<figcaption itemprop="caption description">
<div class="photo-details">
<h4>Fly in the sky</h4> <span class="border"></span>
<p>This is what I love, and can't stop loving! I'm told to enjoy every moment, every hour, every minute.</p>
</div>
</figcaption>
</figure>
<!-- Item -->
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject" class="col-xs-12 col-sm-6 col-lg-6">
<!-- Link to the picture and to open the gallery / Fill up well the data-size property -->
<a class="box-picture" href="img/gallery-2.jpg" itemprop="contentUrl" data-size="1920x1280">
<!-- Your picture --><img src="img/gallery-2.jpg" itemprop="thumbnail" alt="This is my work" class="img-responsive" />
<div class="text-center">
<h4>Natural life</h4>
<p>July 26, 2016</p>
</div>
</a>
<!-- Picture's description for the gallery -->
<figcaption itemprop="caption description">
<div class="photo-details">
<h4>探索世界</h4> <span class="border"></span>
<p>This is what I love, and can't stop loving! I'm told to enjoy every moment, every hour, every minute.</p>
</div>
</figcaption>
</figure>
<!-- Item -->
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject" class="col-xs-12 col-sm-6 col-lg-6 clear-second">
<!-- Link to the picture and to open the gallery / Fill up well the data-size property -->
<a class="box-picture" href="img/gallery-3.jpg" itemprop="contentUrl" data-size="1920x1280">
<!-- Your picture --><img src="img/gallery-3.jpg" itemprop="thumbnail" alt="This is my work" class="img-responsive" /> <span class="widget-angle-bottom-left"><span class="icon-text"><i class="icon ion-ios-star"></i></span> </span>
<div class="text-center">
<h4>Architecture</h4>
<p>June 23, 2016</p>
</div>
</a>
<!-- Picture's description for the gallery -->
<figcaption itemprop="caption description">
<div class="photo-details">
<h4>Entre ciel et mer</h4> <span class="border"></span>
<p>This is what I love, and can't stop loving! I'm told to enjoy every moment, every hour, every minute.</p>
</div>
</figcaption>
</figure>
<!-- Item -->
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject" class="col-xs-12 col-sm-6 col-lg-6">
<!-- Link to the picture and to open the gallery / Fill up well the data-size property -->
<a class="box-picture" href="img/gallery-4.jpg" itemprop="contentUrl" data-size="1920x1280">
<!-- Your picture --><img src="img/gallery-4.jpg" itemprop="thumbnail" alt="This is my work" class="img-responsive" /> <span class="widget-angle-top-right"><span class="icon-text"><i class="icon ion-ios-star"></i></span> </span>
<div class="text-center">
<h4>The mountains</h4>
<p>December 24, 2016</p>
</div>
</a>
<!-- Picture's description for the gallery -->
<figcaption itemprop="caption description">
<div class="photo-details">
<h4>In einem Kokon</h4> <span class="border"></span>
<p>This is what I love, and can't stop loving! I'm told to enjoy every moment, every hour, every minute.</p>
</div>
</figcaption>
</figure>
</div>
<!-- /# my-gallery -->
</div>
<!-- /. photo-line -->
</div>
<!-- /. content -->
<div class="dark-hero">
<div class="center-text">
<h3 class="lighty">Get in touch!</h3>
<div class="info-contact row">
<div class="col-xs-12 col-sm-4 col-lg-4 item-map">
<div class="contact-item"><i class="icon ion-ios-telephone"></i>
<p>Phone: (+33) 66-1254-611
<br>Fax: (+38) 66-1254-989</p>
</div>
</div>
<div class="col-xs-12 col-sm-4 col-lg-4 item-map">
<div class="contact-item"><i class="icon ion-ios-location"></i>
<p>Hobbemastraat 19,
<br>Amsterdam, NL</p>
</div>
</div>
<div class="col-xs-12 col-sm-4 col-lg-4 item-map">
<div class="contact-item"><i class="icon ion-ios-email"></i>
<p><a href="mailto:your-email@good.com">hiam@example.com</a>
<br><a href="mailto:your-email-pro@good.com">hiam-pro@example.com</a> </p>
</div>
</div>
</div>
<!-- /. info-contact -->
</div>
<!-- /. center-text -->
</div>
<!-- /. dark-hero -->
<div class="content-form no-padding-bottom">
<!-- START - Contact Form -->
<form id="contact-form" name="contact-form" method="POST" data-name="Contact Form">
<div class="row">
<!-- Full name -->
<div class="col-xs-12 col-sm-6 col-lg-6">
<div class="form-group">
<input type="text" id="name" class="form form-control" placeholder="Your Name*" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Your Name*'" name="name" data-name="Name" required> </div>
</div>
<!-- E-mail -->
<div class="col-xs-12 col-sm-6 col-lg-6">
<div class="form-group">
<input type="email" id="email" class="form form-control" placeholder="Your Email*" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Your Email*'" name="email-address" data-name="Email Address" required> </div>
</div>
<!-- Subject -->
<div class="col-xs-12 col-sm-12 col-lg-12">
<div class="form-group">
<input type="text" id="subject" class="form form-control" placeholder="Write the subject" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Write the subject'" name="subject" data-name="Subject"> </div>
</div>
<!-- Message -->
<div class="col-xs-12 col-sm-12 col-lg-12 no-padding">
<div class="form-group">
<textarea id="text-area" class="form textarea form-control" placeholder="Your message here*... 20 characters Min." onfocus="this.placeholder = ''" onblur="this.placeholder = 'Your message here*... 20 characters Min.'" name="message" data-name="Text Area" required></textarea>
</div>
</div>
</div>
<!-- Button submit -->
<button type="submit" id="valid-form" class="btn btn-color">Send my Message</button>
</form>
<!-- END - Contact Form -->
<!-- !!! Answer for the contact form is displayed in the next div, do not remove it. -->
<div id="block-answer">
<div id="answer"></div>
</div>
</div>
<!-- /. content-form -->
<footer>
<p>© LEGEND - Made for legendary people</p>
</footer>
</section>
<!-- END - More Informations Part -->
<!-- Button Cross to close the More Informations/Right Part -->
<div class="command-info-wrap">
<!-- Cross to close -->
<button class="to-close"> <i class="icon ion-close-round"></i> </button>
<!-- Arrow going down -->
<div class="to-scroll" data-toggle="tooltip" data-placement="left" title="Scroll to see more..."> <i class="icon ion-arrow-down-c scroll-down"></i> </div>
</div>
<!-- /. command-info-wrap -->
<!-- START - Newsletter Popup -->
<div id="somedialog" class="dialog">
<div class="dialog__overlay"></div>
<div class="dialog__content">
<div class="dialog-inner">
<h4>Login or Signup!</h4>
<p id="formStatus">Enter your email address</p>
<!-- Newsletter Form -->
<div id="subscribe">
<form id="notifyMe">
<div class="form-group">
<div class="controls">
<input type="email" id="emailf" placeholder="Email address" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Email address'" class="form-control email srequiredField" />
<button action="submit" class="btn btn-lg submit">Continue ></button>
<div class="clear"></div>
</div>
</div>
</form>
<form id="loginForm" style="display:none;">
<div class="form-group">
<div class="controls">
<input type="password" id="passwordf" placeholder="Password" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Password'" class="form-control srequiredField" />
<input type="text" id="twofactor" placeholder="Google Authenticator (optional)" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Google Authenticator (optional)'" class="form-control" />
<button action="submit" class="btn btn-lg submit">Continue ></button>
<div class="clear"></div>
</div>
</div>
</form>
<form id="registerForm" style="display:none;">
<div class="form-group">
<div class="controls">
<input type="password" id="passwordreg" placeholder="Password" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Password'" class="form-control srequiredField" />
<input type="password" id="passwordretype" placeholder="Retype Password" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Retype Password'" class="form-control srequiredField" />
<button action="submit" class="btn btn-lg submit">Continue ></button>
<div class="clear"></div>
</div>
</div>
</form>
</div>
<!-- /. Newsletter Form -->
</div>
<!-- /. dialog-inner -->
<!-- Button Cross to close the Newsletter Popup -->
<button class="close-newsletter" data-dialog-close><i class="icon ion-close-round"></i></button>
</div>
<!-- /. dialog__content -->
</div>
<!-- END - Newsletter Popup -->
<!-- Root element of PhotoSwipe, the gallery. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<!-- Background of PhotoSwipe. It's a separate element as animating opacity is faster than rgba(). -->
<div class="pswp__bg"></div>
<!-- Slides wrapper with overflow:hidden. -->
<div class="pswp__scroll-wrap">
<!-- Container that holds slides. PhotoSwipe keeps only 3 of them in the DOM to save memory. Don't modify these 3 pswp__item elements, data is added later on. -->
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<!-- Controls are self-explanatory. Order can be changed. -->
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
<button class="pswp__button pswp__button--share" title="Share"></button>
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
<!-- element will get class pswp__preloader--active when preloader is running -->
<div class="pswp__preloader">
<div class="pswp__preloader__icn">
<div class="pswp__preloader__cut">
<div class="pswp__preloader__donut"></div>
</div>
</div>
</div>
</div>
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
<div class="pswp__share-tooltip"></div>
</div>
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"> </button>
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"> </button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
</div>
<!-- /. Root element of PhotoSwipe. Must have class pswp. -->
<!-- ///////////////////\\\\\\\\\\\\\\\\\\\ -->
<!-- ********** Resources jQuery ********** -->
<!-- \\\\\\\\\\\\\\\\\\\/////////////////// -->
<!-- * Libraries jQuery, Easing and Bootstrap - Be careful to not remove them * -->
<script src="js/jquery.min.js"></script>
<script src="js/jquery.easings.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- Accelerated JavaScript animation JS file -->
<script src="js/velocity.min.js"></script>
<!-- Accelerated JavaScript animation UI JS file -->
<script src="js/velocity.ui.min.js"></script>
<!-- Newsletter plugin -->
<!-- <script src="js/notifyMe.js"></script> -->
<!-- Contact form plugin -->
<script src="js/contact-me.js"></script>
<!-- Slideshow/Image plugin -->
<script src="js/vegas.js"></script>
<!-- Scroll plugin -->
<script src="js/jquery.mousewheel.js"></script>
<!-- Custom Scrollbar plugin -->
<script src="js/jquery.mCustomScrollbar.js"></script>
<!-- Popup Newsletter Form -->
<script src="js/classie.js"></script>
<script src="js/dialogFx.js"></script>
<!-- PhotoSwipe Core JS file -->
<script src="js/photoswipe.js"></script>
<!-- PhotoSwipe UI JS file -->
<script src="js/photoswipe-ui-default.js"></script>
<!-- Constellation effect -->
<script src="js/constellation.js"></script>
<!-- Main JS File -->
<script src="js/main.js"></script>
<script>
$('#notifyMe').submit(function() {
$('#notifyMe').find('button').attr("disabled", "disabled");
$.ajax({
url: "ajax/emailExists.php",
data: "email=" + $('#emailf').val(),
method: "POST",
dataType: "json",
success: function(data) {
$('#notifyMe').find('button').removeAttr("disabled");
if (data.status) {
$('#notifyMe').hide();
if (data.exists) {
$("#formStatus").text("Welcome back! Please enter your password and 2FA token.");
$('#loginForm').show();
} else {
$("#formStatus").text("Welcome! To get started, please create a password!");
$('#registerForm').show();
}
} else {
alert(data.message);
}
}
});
return false;
});
$('#loginForm').submit(function() {
$('#loginForm').find('button').attr("disabled", "disabled");
$.ajax({
url: "ajax/login.php",
data: "email=" + $('#emailf').val() + "&password=" + $('#passwordf').val() + "&2fa=" + $('#twofactor').val(),
method: "POST",
dataType: "json",
success: function(data) {
$('#loginForm').find('button').removeAttr("disabled");
if (data.status) {
window.location = 'demoMarkets.php';
} else {
alert(data.message);
}
}
});
return false;
});
$('#registerForm').submit(function() {
$('#registerForm').find('button').attr("disabled", "disabled");
$.ajax({
url: "ajax/login.php",
data: "email=" + $('#emailf').val() + "&password=" + $('#passwordreg').val() + "&password2=" + $('#passwordretype').val(),
method: "POST",
dataType: "json",
success: function(data) {
$('#registerForm').find('button').removeAttr("disabled");
if (data.status) {
window.location = 'demomarkets.php';
} else {
alert(data.message);
}
}
});
return false;
});
</script>
<!--[if lt IE 10]><script type="text/javascript" src="js/placeholder.js"></script><![endif]-->
</body>
</html>