-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php~
620 lines (539 loc) · 20.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
<?php
require_once 'core/init.php';
$user = new User();
if($user->isLoggedIn() || isset($_SESSION['user'])){
if(Input::exists('get')&&isset($_GET['updatescore'])){
$x = Input::get('px');
$y = Input::get('py');
$db = DB::getInstance();
$row = $db->get("coords", array('id', '=', 1))->first();
$obj = (object) array('x' => $x, 'y' => $y);
$where = array('user_id', '=', $user->data()->id);
$updRecord = $db->get('user_score',$where)->first();
$updData = array('score' => $updRecord->score+1);
//print_r($updData);
if(isset($_GET['main'])){
if(in_array($obj,json_decode($row->coordinates)))
$db->update('user_score',$updRecord->id,$updData);
}
elseif(isset($_GET['side']))
{
$res = '[';
$res .= $row->coordside1.',';
$res .= $row->coordside2.',';
$res .= $row->coordside3.',';
$res .= $row->coordside4.',';
$res .= $row->coordside5.',';
$res .= $row->coordside6.']';
for($i=0; $i<count(json_decode($res)); $i++) {
if(in_array($obj,json_decode($res)[$i]))
{
if(!$db->update('user_score',$updRecord->id,$updData))
die($db->error());
}
}
}
header('Content-Type: application/json');
echo json_encode(array('status' => 'success', 'message' => 'Success'));
die();
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Infotsav'16 | ABV IIITM</title>
<meta name="description" content="Infotsav Annual Techno-Managerial Fest ABV IIITM">
<meta name="keywords" content="Infotsav, ABV IIITM, techfest, Techno, Managerial, Techno-Managerial, Events, Coding, Robofiesta, Robotics, Qiuz">
<meta property="og:image" content="shareImg.jpg" />
<link rel="SHORTCUT ICON" href="favicon.png">
<!-- Styles -->
<!--<link href="http://fonts.googleapis.com/css?family=Lekton" rel="stylesheet" type="text/css">-->
<!--<link href="http://fonts.googleapis.com/css?family=Molengo" rel="stylesheet" type="text/css">-->
<link type="text/css" rel="stylesheet" href="css/reset.css" />
<?php
if($user->isLoggedIn() || isset($_SESSION['user']))
{
echo '<link type="text/css" rel="stylesheet" href="css/style_login.css" />';
echo ($user->data()->avtar == 1)?'<link type="text/css" rel="stylesheet" href="css/ash.css" />' : '<link type="text/css" rel="stylesheet" href="css/misty.css" />';
}
else
echo '<link type="text/css" rel="stylesheet" href="css/style.css" />'
?>
<!-- Scripts -->
<script type="'text/javascript'">
(function(){
var _z = console;
Object.defineProperty( window, "console", {
get : function(){
if( _z._commandLineAPI ){
throw "Sorry, Can't execute scripts!";
}
return _z;
},
set : function(val){
_z = val;
}
});
})();
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51785381-2', 'auto');
ga('send', 'pageview');
</script>
<script src="scripts/jquery-1.6.3.min.js" type="text/javascript"></script>
<script src="scripts/jquery.spritely-0.6.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/sweetalert.css" />
<script src="scripts/sweetalert.min.js"></script>
<script src="scripts/encrypt.min.js"></script>
<script src="scripts/jquery.nicescroll.js"></script>
<script src="scripts/data.js" type="text/javascript"></script>
<?php
if($user->isLoggedIn() || isset($_SESSION['user']))
{
echo '<script src="scripts/spawnPokemon.js" type="text/javascript"></script>';
echo '<script src="scripts/game_play.js" type="text/javascript"></script>';
}
else
echo '<script src="scripts/game.js" type="text/javascript"></script>';
if(Session::exists('home')){
echo '<script>swal("Oh Yeah!","'.Session::flash('home').'","success")</script>';
}
?>
<!--[if lt IE 9]>
<script type="text/javascript">
window.location = 'ie.html';
</script>
<![endif]-->
<script type="text/javascript">
$(document).ready(function(){
$("html").niceScroll();
});
$(document).ready(function(){
$("#lightbox").niceScroll();
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$('#innerLoading .me').sprite({fps: 12, no_of_frames: 4}).spState(1);
var game = new Game();
});
</script>
<style>
@font-face{
font-family: newbold;
src:url(cuyabrabold.otf);
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$('#innerLoading .me').sprite({fps: 12, no_of_frames: 4}).spState(1);
var game = new Game();
});
function startGame() {
$('html, body').animate({scrollTop: 0});
$('#loadingGame').fadeOut('fast', function(){
$(this).remove();
})
}
</script>
</head>
<body onload="startGame(); <?php if($user->isLoggedIn() || isset($_SESSION['user']) && !Session::exists('spawned')) { echo 'getdata();'; Session::put('spawned',true);} ?>">
<!-- <audio autoplay="autoplay" src="audio/aud.mp3" id="music">-->
<!-- <embed src="audio/aud.mp3" hidden="true" loop="false" autostart="true" height="0" width="0" style="z-index: -99; display: ;"></embed>-->
<!-- </audio>-->
<!-- Facebook like
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7&appId=1575460229415952";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script> -->
<!-- Loader -->
<div id="loadingGame">
<div id="innerLoading">
<div class="me"></div>
<h1 style="font-size:200%;top:10%;line-height: 100%; ">WELCOME TO INFOTSAV 2016</h1>
<p>Just a few moments</p>
<span>Don't go anywhere...</span>
</div>
</div>
<!-- Navigation -->
<nav>
<ul class="clearfix">
<li><a class="current" href="#startCave">Home</a></li>
<li><a href="#aboutHouse">Events</a></li>
<li><a href="#servicesHouse">Worshops</a></li>
<li><a href="#portfolioHouse">Gallery</a></li>
<li><a href="#sponsorsHouse">Sponsors</a></li>
<li><a href="#techHouse">Contact Us</a></li>
<li><a href="#abinfotsavHouse">About Us</a></li>
<?php
if($user->isLoggedIn() || isset($_SESSION['user']))
{
echo '<li><a href="#logout">Logout</a></li>';
echo '<li><a href="#login"> || Welcome '.$user->data()->name." ||</a></li>";
}
else
echo '<li><a href="#login">Login/Register</a></li>';
?>
<!-- <li><a href="" onclick="document.getElementById('music').Pause">Pause Music</a></li> -->
<li class="last"><a href="#howToPlay">?</a></li>
</ul>
</nav>
<!-- Notifications Manager -->
<div id="notifications"><div class="inner"></div><span class="close">x</span></div>
<div id="share">
<div class="fb-like" data-href="https://www.facebook.com/Infotsav/" data-layout="box_count" data-action="like" data-width="50" data-show-faces="false" data-font="lucida grande" data-share="true"></div>
<?php
if($user->isLoggedIn() || isset($_SESSION['user']))
{
?>
<script>
$.ajax({
url: "leaderboard.php?api",
type: "get",
datatype: "json",
success: function(data){
try{
console.log(data);
var data=JSON.parse(data);
console.log(data);
$("#pos").html('Position: '+data.pos);
console.log(data.pos);
$("#score").text("Score: "+data.score);
}catch(e){
$("#pos").html('Position: '+data.pos);
console.log(data.pos);
$("#score").text("Score: "+data.score);
}
}
});
setInterval(function(){
$.ajax({
url: "leaderboard.php?api",
type: "get",
datatype: "json",
success: function(data){
try{
var data=JSON.parse(data);
$("#pos").html('Position: '+data.pos);
console.log(data.pos);
$("#score").text("Score: "+data.score);
}catch(e){
$("#pos").html('Position: '+data.pos);
console.log(data.pos);
$("#score").text("Score: "+data.score);
}
}
})},
12000);
</script>
<a href="leaderboard.php" target="_blank">
<div id="lbscore">
<p>Leaderboard</p>
<p id="pos"></p>
<p id="score"></p>
</div>
</a>
<?php
}
?>
<!-- Add Fb like and G+ +1 button after acquiring the API
<div class="fb-like" data-href="http://danielsternlicht.com/" data-send="false" data-layout="box_count" data-width="50" data-show-faces="false" data-font="lucida grande"></div>
<a href="https://twitter.com/share" data-url="http://danielsternlicht.com" data-count="vertical" data-via="dsternlicht" class="twitter-share-button">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="../platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<div class="g-plusone" data-size="tall" data-href="http://danielsternlicht.com"></div>-->
</div>
<div id="wrapper">
<!-- Main Text -->
<hgroup id="myInfo">
<h3>ABV Indian Institute of Information Technology and Management</h3>
<h2> Presents</h2>
<h1>INFOTSAV'16</h1>
<h2> ( 12 - 13 November 2016 )</h2>
<!-- <h2> of ABV IIITM</h2> -->
</hgroup>
<!-- Start Text -->
<p id="startText">
<img src="images/keyboardArrows.png" alt="keyboard arrows" />
Start playing by using <br />the keyboard arrows
</p>
<!-- Start Cave -->
<div id="startCave" class="cave"></div>
<div id="startCaveHole" class="caveHole"></div>
<div id="startCaveHoleTrack" class="caveHoleTrack"></div>
<!-- Main Road -->
<div id="mainRoad" class="road">
</div>
<div id="leftFence"></div>
<div id="rightFence"></div>
<!-- Player -->
<div id='player'></div>
<!-- Stop Station 1 -->
<div id="aboutRoad" class="road side">
</div>
<div id="aboutHouse" class="house">
<div class="door"></div>
<div class="lightbox">
<div class="inner portfolio clearfix" style="color: black;">
<center><h2 style="color:white;">EVENTS</h2></center>
<div class="portfolioBox">
<div class="inner">
<a class="portfolioImg" href="Info/technicalnew.php" target="_blank">
<img src="images/events/appStudio.png" alt="Technical Events" />
</a>
<h4 style="font-size:200%;"><strong>Technical Events</strong></h4>
<p></p>
</div>
</div>
<div class="portfolioBox">
<div class="inner">
<a class="portfolioImg" href="Info/managerialnew.php" target="_blank">
<img src="images/events/manage.png" alt="Managerial Events" />
</a>
<h4 style="font-size:200%;"><strong>Managerial Events</strong></h4>
<p></p>
</div>
</div>
<div class="portfolioBox">
<div class="inner">
<a class="portfolioImg" href="Info/onlinenew.php" target="_blank">
<img src="images/events/simulation.jpg" alt="Simulation Events" />
</a>
<h4 style="font-size:200%;"><strong>Online Events</strong></h4>
<p></p>
</div>
</div>
<div class="portfolioBox">
<div class="inner">
<a class="portfolioImg" href="Info/gamiacsnew.php" target="_blank">
<img src="images/events/Gamiacs.png" alt="Gamiacs" />
</a>
<h4 style="font-size:200%;"><strong>Gamiacs</strong></h4>
<p></p>
</div>
</div>
<div class="portfolioBox">
<div class="inner">
<a class="portfolioImg" href="Info/robonew.php" target="_blank">
<img src="images/events/robos.png" alt="Robofiesta" />
</a>
<h4 style="font-size:200%;"><strong>Robofiesta</strong></h4>
<p></p>
</div>
</div>
<div class="portfolioBox">
<div class="inner">
<a class="portfolioImg" href="Info/quiznew.php" target="_blank">
<img src="images/events/quiz.png" alt="Quiz" />
</a>
<h4 style="font-size:200%;"><strong>Quiz</strong></h4>
<p></p>
</div>
</div>
<div class="shelf"></div>
<div class="shelf bottom"></div>
</div>
</div>
</div>
<div id="aboutSign" class="sign"><span>EVENTS</span></div>
<div id="aboutHole" class="hole"></div>
<!-- Stop Station 2 -->
<div id="servicesRoad" class="road side">
</div>
<div id="servicesHouse" class="house">
<div class="door"></div>
<div class="lightbox">
<div class="inner services">
<h2 style="text-align: center;">...Workshops...</h2>
<div><br><br><center style="font-size:150%;">Coming Soon....</center>
<!-- <section class="left" style="font-family: newbold;font-size:150%">
>>>>>>> master
<h4 class="">Cyber Hacking</h4>
<div class="">
Cyberx Securities offers Workshop-cum-Championship under the aegis of Infotsav'15.It will be a two days workshop covering as many as possible topics like Cyber Securtiy, Cryptography, Website hacking. Free tool kit will be given to all the participants along with a certificate from Cyberx Securities and will provide further assistance in career opportunities. Top 3 winners of the workshop will get Gift Vouchers. Registration fee is Rs. 900/-
<a href="#">Read more</a>
</div>
<br/><br/>
<h4 class="">Game Development</h4>
<div class="">
TechBharat Consulting offers its Workshop on Game Development under the aegis of Infotsav'15.It will be a two days workshop covering all the elements of Game Development.Registration fee is Rs.1000/-
<a href="#">Read more</a>
</div>
<br/><br/>
<h4 class="">How to built your own website</h4>
<div class="">
"You're committing to search for one of the rare ideas that generates rapid growth" - Paul Graham. An Entrepreneur starting a startup is committing to solve a harder type of problem than ordinary businesses do. For all those budding Entrepreneur we present our workshop on 'How To Build your own Startup'.Registration fee is Rs.600/- The workshop will be conducted by an eminent entrepreneur Ronak Dhoot - CTO & Co-founder Geek Shastra.
<a href="#">Read more</a>
</div>
</section>
<section class="right">
<center>
<br/><br/><br/>
<img src="images/ws1.jpg" class="ws1"><br/><br/>
<img src="images/ws2.png" class="ws2"><br/><br/><br/>
<img src="images/ws3.jpg" class="ws3">
</center>
</section> -->
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div id="servicesSign" class="sign"><span>Workshops</span></div>
<div id="servicesHole" class="hole"></div>
<!-- Stop Station 3 -->
<div id="portfolioRoad" class="road side"></div>
<div id="portfolioHouse" class="house">
<div class="door"></div>
<div class="lightbox">
<iframe src="imagegallery/imagegallery.html" height="90%" width="100%"></iframe>
</div>
</div>
<div id="portfolioSign" class="sign"><span>Image Gallery</span></div>
<div id="portfolioHole" class="hole"></div>
<!-- Stop station 4 -->
<div id="sponsorsRoad" class="road side">
</div>
<div id="sponsorsHouse" class="house">
<div class="door"></div>
<div class="lightbox">
<div class="inner sponsors clearfix">
<center><h2>PREVIOUS SPONSORS</h2></center>
<div>
<center><img src="images/sponsors.new.jpg" width="900px" height="900px" class="sponsorPic"></center>
</div>
</div>
</div>
</div>
<div id="sponsorsSign" class="sign"><span>Sponsors</span><</div>
<div id="sponsorsHole" class="hole"></div>
<!-- Stop station 5 -->
<div id="techRoad" class="road side">
</div>
<div id="techHouse" class="house">
<div class="door"></div>
<div class="lightbox">
<div class="inner abinfotsav clearfix">
<h2><center><pre>Contact us</pre></center></h2>
<section>
<center>For any queries regarding INFOTSAV 2016, contact us at:-<br><br></center>
<center>
<form method="post" class="contactForm" action="http://www.aasf.in/mailer/mailer.php">
Name : <input type="text" name="conname"></input><br/>
E-mail : <input type="email" name="conemail"></input><br/>
Contact : <input type="text" name="feedcontact"></input><br/><br/>
Queries: <textarea name="queries" rows="6" cols="40" ></textarea>
<center><button style="height:30px;width: 90px;" class="btn btn-success" name="submit" type="submit">Submit</button></center>
</form>
</center>
</section>
</div>
</div>
</div>
<div id="techSign" class="sign"><span>Contact Us</span><</div>
<div id="techHole" class="hole"></div>
<!-- Stop station 6 -->
<div id="abinfotsavRoad" class="road side"></div>
<div id="abinfotsavHouse" class="house">
<div class="door"></div>
<div class="lightbox">
<div class="inner abinfotsav clearfix">
<h2><center><pre>About Infotsav'16</pre></center></h2>
<section>
<ul style="font-family: newbold;font-size:150%;">
<li style="font-family: newbold;">
With vivid fests' jubilations hovering around every college, Infotsav is unique in its
kind as it encourages knowledge with fun. It is an unprecedented fest which focuses on
enhancing technical skill development and raging towards bang-on entrepreneurship.
An amalgamation of <b>Technical, Managerial, Online Simulation and Quizzing Events</b>,
<em>Infotsav is back to challenge innovative minds.</em>
</li>
<li style="font-family: newbold;">
A series of Challenging and exciting Technical events will be held including
<b>Programming Contest, Software development, App Development</b> contests which will have a new flavour.
Several other skill based events such as <b>Web Development, Code Rush and BugSpot</b> are also a great snack
for code lovers. The Fest is a perfect concoction of technical and non-technical events.
</li>
</ul>
</section>
</div>
</div>
</div>
<div id="abinfotsavSign" class="sign"><span>About Us</span><</div>
<div id="abinfotsavHole" class="hole"></div>
<!-- View -->
<div id="rightTrees" class="trees"></div>
<div id="leftGrass" class="grass"></div>
<!-- End Cave -->
<div id="endSea" class="sea"></div>
<div id="endBridge" class="bridge"></div>
<!-- <div id="endCaveHoleGlow"></div> -->
<div id="boat" class="isMoored">
<div class="meSail"></div>
</div>
<!-- <div id="contact">
<h1>Web Credits</h1>
<p>
<a href="https://www.linkedin.com/in/arvind-rachuri-37a700105" target="_blank"> Arvind Rachuri </a>|
<a href="https://www.linkedin.com/in/pranjal-kumar-48bb82124" target="_blank"> Pranjal Kumar </a>|
<a href="https://www.facebook.com/aayush.choudhry" target="_blank">Aayush Choudhry</a>
</p>
</div> -->
<!-- Flowers -->
<div class="flowers r1"></div>
<div class="flowers r2"></div>
<div class="flowers r3"></div>
<div class="flowers r4"></div>
<div class="flowers r5"></div>
<div class="flowers r6"></div>
<div class="flowers r7"></div>
<div class="flowers r8"></div>
<div class="flowers r9"></div>
<div class="flowers r10"></div>
<div class="flowers r11"></div>
<div class="flowers r12"></div>
<div class="flowers r13"></div>
<div class="flowers r14"></div>
<div class="flowers r15"></div>
</div>
<div id="howToPlay">
<div class="lightbox">
<div class="inner howtoplay">
<h2>How To Play?</h2>
<article style="font-size:200%;">
<div id="htpArrows" class="box clearfix">
<div class="icon"></div>
<p>Move by using the keyboard arrows. To move the character faster hold down the Shift key.To play the game please login</p>
</div>
<div id="htpHouses" class="box clearfix">
<div class="icon"></div>
<p>Enter houses to get some information about Infotsav'16.</p>
</div>
<div id="htpMouse" class="box clearfix">
<div class="icon"></div>
<p>Teleport yourself directly to a specific point in the portfolio by left click</p>
</div>
<div id="htpEsc" class="box clearfix">
<div class="icon"></div>
<p>Press the "Esc" key to leave buildings and close the notifications bar.
</p>
</div>
<div id="htpShare" class="box clearfix">
<div class="icon"></div>
<p>Participate In Infotsav and win prize worth Rs.400,000</p>
</div>
</article>
</div>
</div>
</div>
<img src="images/wood.png" style="display: none;" />
</body>
</html>