-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
576 lines (524 loc) · 31.1 KB
/
index.php
File metadata and controls
576 lines (524 loc) · 31.1 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
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<!-- Page Title -->
<title>Crypticon - 2024</title>
<!-- Meta Tags -->
<meta
name="description"
content="Join Crypticon, where students solve cryptic questions, play games, and win prizes. Engage in a fun and challenging experience!"
/>
<meta
name="keywords"
content="Crypticon, games, cryptic questions, prizes, students, interactive, educational, fun, challenge, competition"
/>
<!-- Viewport Meta-->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<!-- Facebook Metadata Start -->
<meta property="og:image:height" content="1200" />
<meta property="og:image:width" content="1200" />
<meta property="og:title" content="Crypticon - Interactive Game and Puzzle Challenge" />
<meta
property="og:description"
content="Join Crypticon, where students solve cryptic questions, play games, and win prizes. Engage in a fun and challenging experience!"
/>
<!-- Facebook Metadata End -->
<!-- Template Styles Start -->
<link rel="stylesheet" type="text/css" href="css/loaders/loader.css" />
<link rel="stylesheet" type="text/css" href="css/plugins.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<!-- Template Styles End -->
<link rel="shortcut icon" href="img/favicon.png" type="image/x-icon">
<!-- Custom Browser Color Start -->
<meta name="theme-color" content="#0e0d26" />
<meta name="msapplication-navbutton-color" content="#0e0d26" />
<meta name="apple-mobile-web-app-status-bar-style" content="#0e0d26" />
<!-- Custom Browser Color End -->
</head>
<body>
<!-- Loader Start -->
<div class="loader">
<div class="loader__container">
<div class="pyramid-loader">
<div class="wrapper">
<span class="side side1"></span>
<span class="side side2"></span>
<span class="side side3"></span>
<span class="side side4"></span>
<span class="shadow"></span>
</div>
</div>
</div>
</div>
<!-- Loader End -->
<!-- Menu Start -->
<nav id="menu" class="menu">
<div class="menu__content">
<div class="container-fluid p-0 fullheight">
<div class="row g-0 flex-xl-row-reverse fullheight">
<!--Menu Data Block Start -->
<div class="col-12 col-xl-8 menu__data">
<!-- Menu Controls Line Start -->
<div class="menudata__controls">
<div class="controls__content">
<div class="container-fluid p-0">
<div class="row g-0">
<div class="col-8">
<div class="controls__leftline d-flex justify-content-start align-items-center">
<!-- Menu Notify Trigger Start -->
<!-- <a
id="notify-trigger-menu"
class="btn-round-mobile btn-notify btn-light-mobile hover-white hover-white-s"
href="#0"
> -->
<a
class="btn-round-mobile btn-notify btn-light-mobile hover-white hover-white-s"
href="https://drive.google.com/file/d/156c3kEA2vxE7kYKarT5m5dqSasMxymgz/view?usp=sharing"
target="_blank"
>
<em></em>
<i class="fa-solid fa-download"></i>
<span class="btn-caption">Rules</span>
</a>
<!-- Menu Notify Trigger End -->
<!-- Menu Socials Start -->
<div class="socials-menu">
<ul>
<li>
<a href="https://www.instagram.com/crypticon_india" target="_blank">
<i class="fa-brands fa-instagram"></i>
</a>
</li>
<li>
<a
href="https://www.linkedin.com/company/elitegenesis-innovations/"
target="_blank"
>
<i class="fa-brands fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://mapsashokvihar.net/" target="_blank">
<i class="fa-solid fa-graduation-cap"></i>
</a>
</li>
<li>
<a href="https://discord.gg/nXJ7pv5Zw4" target="_blank">
<i class="fa-brands fa-discord"></i>
</a>
</li>
</div>
<!-- Menu Socials End -->
</div>
</div>
<div class="col-4">
<div class="controls__rightline d-flex justify-content-end align-items-center">
<!-- Menu Close Button Start -->
<a id="menu-close" class="section-close hover-white hover-white-s" href="#0">
<em></em>
<span></span>
</a>
<!-- Menu Close Button End -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Menu Controls Line End -->
<!-- Menu Links Start -->
<div class="menudata__links">
<div class="container-fluid p-0">
<div class="row g-0 align-items-end">
<div class="col-12 col-md-6">
<!-- Navigation Start -->
<ul class="navigation">
<li>
<a href="#0" id="home-trigger">Home</a>
</li>
<li>
<a href="#0" id="about-trigger">About Us</a>
</li>
<!-- <li>
<a href="#0" id="portfolio-trigger">Leaderboard</a>
</li> -->
<!-- <li>
<a href="#0" id="contact-trigger">Contact Us</a>
</li> -->
</ul>
<!-- Navigation End -->
</div>
</div>
</div>
</div>
<!-- Menu Links End -->
<!-- Menu Copyright Start -->
<div class="menudata__copyright">
<div class="container-fluid p-0">
<div class="row g-0">
<div class="col-12">
<p class="copyright">
Made By <a href="https://www.linkedin.com/in/sachin11175" target="_blank">Sachin</a> & <a href="https://www.linkedin.com/in/isaurav" target="_blank">Saurav</a>
</p>
</div>
</div>
</div>
</div>
<!-- Menu Copyright End -->
</div>
<!--Menu Data Block End -->
<!--Menu Media Block Start -->
<div class="col-12 col-xl-4 menu__media">
<div class="media__content">
<!-- Menu Image Background Start -->
<div class="menu__image menu-image-1"></div>
<!-- Menu Image Background End -->
</div>
</div>
<!--Menu Media Block End -->
</div>
</div>
</div>
</nav>
<!-- Menu End -->
<!-- Header Start -->
<header id="header" class="header">
<!-- Logo Start -->
<div class="header__logo">
<img src="img/logo.svg" alt="Crypticon 2024" />
</div>
<!-- Logo End -->
<!-- Header Content Start -->
<div class="header__content fullheight-mobile d-flex align-items-center">
<div class="container-fluid px-0">
<div class="row gx-0 justify-content-end justify-content-xl-start">
<div class="col-auto col-xl-8">
<!-- Header Controls Block Start -->
<div class="header__buttons d-flex justify-content-end align-items-center">
<!-- Socials Desktop Start -->
<div class="socials-desktop">
<ul>
<li>
<a href="https://www.instagram.com/crypticon_maps" target="_blank">
<i class="fa-brands fa-instagram"></i>
</a>
</li>
<li>
<a
href="https://www.linkedin.com/company/elitegenesis-innovations/"
target="_blank"
>
<i class="fa-brands fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://mapsashokvihar.net/" target="_blank">
<i class="fa-solid fa-graduation-cap"></i>
</a>
</li>
<li>
<a href="https://discord.gg/nXJ7pv5Zw4" target="_blank">
<i class="fa-brands fa-discord"></i>
</a>
</li>
</div>
<!-- Socials Desktop End -->
<!-- Notify Trigger Start -->
<a
class="btn-round-mobile btn-notify btn-light-outline notify-trigger hover-white hover-white-s"
href="https://drive.google.com/file/d/156c3kEA2vxE7kYKarT5m5dqSasMxymgz/view?usp=sharing"
target="_blank"
>
<em></em>
<i class="fa-solid fa-download"></i>
<span class="btn-caption">Rules</span>
</a>
<!-- Notify Trigger End -->
</div>
<!-- Header Controls Block End -->
</div>
<div class="col-auto col-xl-4">
<!-- Menu Trigger Start -->
<div class="header__menu d-flex justify-content-end">
<a id="menu-trigger" class="menu-trigger" href="#0">
<span class="menu-objects"></span>
</a>
</div>
<!-- Menu Trigger End -->
</div>
</div>
</div>
</div>
<!-- Header Content End -->
</header>
<!-- Header End -->
<!-- Main Section Start -->
<section id="main" class="main active">
<div class="main__content">
<div class="container-fluid p-0 fullheight">
<div class="row g-0 fullheight">
<!-- Main Section Intro Start -->
<div class="col-12 col-xl-8 main__intro">
<!-- Intro Content Start -->
<div class="intro__content">
<!-- Headline Start -->
<div id="headline" class="headline">
<span class="headline__subtitle">Crypticon 2024</span>
<?php
require_once 'u/config.php';
$sql = "SELECT CompetitionDate, CompetitionEndDate, CompetitionStartTime, CompetitionEndTime FROM competitionInfo ORDER BY CompetitionID DESC LIMIT 1";
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_assoc($result);
$competitionStart = new DateTime($row['CompetitionDate'] . ' ' . $row['CompetitionStartTime'], new DateTimeZone('Asia/Kolkata'));
$competitionEnd = new DateTime($row['CompetitionEndDate'] . ' ' . $row['CompetitionEndTime'], new DateTimeZone('Asia/Kolkata'));
$competitionStartTimestamp = $competitionStart->getTimestamp() * 1000; // Convert to milliseconds
$competitionEndTimestamp = $competitionEnd->getTimestamp() * 1000; // Convert to milliseconds
?>
<h1 class="large" id="gameStatus">Game status loading...</h1>
<script>
function updateGameStatus() {
const now = new Date().getTime();
const competitionStart = <?php echo $competitionStartTimestamp; ?>;
const competitionEnd = <?php echo $competitionEndTimestamp; ?>;
let status;
if (now < competitionStart) {
status = "Game will begin in";
} else if (now >= competitionStart && now < competitionEnd) {
status = "Game has started";
} else {
status = "Game has";
}
document.getElementById('gameStatus').textContent = status;
}
// Update status immediately and then every second
updateGameStatus();
setInterval(updateGameStatus, 1000);
</script>
<div class="media__countdown">
<?php include 'u/timer.php'; ?>
</div>
</div>
<!-- Headline End -->
</div>
<!-- Intro Content End -->
<!-- Bottom Button Start -->
<div class="intro__button">
<a href="login.php" class="btn-bottom">
<span class="circle">
<em></em>
<i>🡭</i>
</span>
<span class="caption">LOGIN NOW!</span>
</a>
</div>
<!-- Bottom Button End -->
</div>
<!-- Main Section Intro End -->
<!-- Main Section Media Start -->
<div class="col-12 col-xl-4 main__media">
<!-- Main Section Image Background Start -->
<div class="media__image media-image-1"></div>
<!-- Main Section Image Background End -->
</div>
<!-- Main Section Media End -->
<!-- Sosials Mobile Start -->
<div class="col-12 socials-mobile">
<ul>
<li>
<a href="https://www.instagram.com/crypticon_maps" target="_blank">
<i class="fa-brands fa-instagram"></i>
</a>
</li>
<li>
<a
href="https://www.linkedin.com/company/elitegenesis-innovations/"
target="_blank"
>
<i class="fa-brands fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://mapsashokvihar.net/" target="_blank">
<i class="fa-solid fa-graduation-cap"></i>
</a>
</li>
<li>
<a href="https://discord.gg/nXJ7pv5Zw4" target="_blank">
<i class="fa-brands fa-discord"></i>
</a>
</li>
</ul>
</div>
<!-- Sosials Mobile End -->
</div>
</div>
</div>
</section>
<!-- Main Section End -->
<!-- About Section Start -->
<section id="about" class="inner about">
<div class="container-fluid p-0 fullheight">
<div class="row g-0 fullheight">
<!-- About Section Content Start -->
<div class="col-12 col-xl-8 inner__content">
<!-- desktop shadow -->
<div class="desktop-shadow"></div>
<!-- inner section blocks -->
<div class="inner__blocks">
<!-- Section Container - Section Title Start -->
<div class="inner__container">
<div class="content-block">
<span class="section__subtitle">Crypticon 2024</span>
<h2>Procedure</h2>
<br />
<ol>
<li>1. Join the designated Discord server for updates and access.</li>
<li>2. Access the competition portal via a shared link.</li>
<li>3. Players log in using school-specific credentials; competition begins at 12 AM sharp.</li>
<li>4. Progress through levels by answering cryptic questions, earning 200 points per level.</li>
<li>5. Leads will be provided periodically, with moderators offering hints as needed.</li>
<li>
6. Competition lasts 24 hours, with a live leaderboard showing real-time scores and rankings.
</li>
</ol>
<br />
<h2>General Rules</h2>
<br />
<ol>
<li>
1. Access the hunt via the provided link; rename yourself with your real name and school name.
</li>
<li>2. Only DM to assigned moderators for lead confirmations.</li>
<li>3. Spamming moderators leads to disqualification.</li>
<li>
4. Perform assigned tasks to receive level-specific hints; hints also posted in the hints
channel.
</li>
<li>
5. Using unfair means results in immediate disqualification; internet use is allowed for solving
riddles.
</li>
</ol>
</div>
</div>
<!-- Section Container - Section Title End -->
<!-- Section Container - Showreel Start -->
<!-- Section Container - Showreel End -->
</div>
</div>
<!-- About Section Content End -->
<!-- About Section Media Start -->
<div class="col-12 col-xl-4 inner__media">
<!-- About Section Image Background Start -->
<div class="image media-image-about"></div>
<!-- About Section Image Background End -->
</div>
<!-- About Section Media End -->
</div>
</div>
</section>
<!-- About Section End -->
<!-- Notify Popup Start -->
<div id="notify" class="popup notify">
<div class="popup__container">
<!-- Popup Controls Start -->
<div class="popup__controls d-flex justify-content-end">
<a href="#0" id="notify-close" class="popup-close hover-gradient hover-gradient-s">
<em></em>
<span></span>
</a>
</div>
<!-- Popup Controls End -->
<!-- Popup Content Start -->
<div class="popup__content block-rounded-l">
<!-- Notify Popup Title Start -->
<div class="popup-title">
<p class="popup-title__title">Get to know about Game Start</p>
<p class="popup-title__text">
Subscribe to our newsletter and we will send you a notification about the start of our game
</p>
</div>
<!-- Notify Popup Title End -->
<!-- Notify Form Container Start -->
<div class="form-container">
<!-- Reply Messages Start-->
<div class="reply-group subscription-ok">
<i class="fa-solid fa-circle-check reply-group__icon"></i>
<p class="reply-group__title txt-light">Done!</p>
<span class="reply-group__text">Thanks for subscribing. We will send you a notification about our launch.</span>
</div>
<div class="reply-group subscription-error">
<i class="fa-solid fa-face-frown-open reply-group__icon"></i>
<p class="reply-group__title">Ooops!</p>
<span class="reply-group__text">Something went wrong. Please try again later.</span>
</div>
<!-- Reply Messages End-->
<!-- Notify Contact Form Start-->
<form class="form notify-form form-light">
<input class="block-rounded-s" type="email" placeholder="Your Email" required />
<button class="btn btn-l btn-light hover-gradient hover-gradient-l" type="submit">
<em></em>
<span class="btn-caption">Submit</span>
</button>
</form>
<!-- Notify Contact Form End-->
</div>
<!-- Notify Form Container End -->
</div>
<!-- Popup Content End -->
</div>
</div>
<!-- Notify Popup End -->
<!-- Root element of PhotoSwipe. 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 slides in 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>
<!-- Load Scripts Start -->
<script src="js/libs.min.js"></script>
<script src="js/gallery-init.js"></script>
<script src="js/custom.js"></script>
<!-- Load Scripts End -->
</body>
</html>