-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathquestion.php
94 lines (91 loc) · 3.81 KB
/
question.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
<?php
session_start();
if($_SESSION["enrollment"]!="")
{?>
<html>
<head>
<meta charset="UTF-8">
<title>War For Trezor</title>
<link rel="icon" href="https://i.imgur.com/hmaZoKf.gif" type="image/gif">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T">
<link rel="stylesheet" href="asset/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script>
if(window.history.forward(1) != null)
window.history.forward(1);
</script>
</head>
<body>
<!--this is used for navigation bar on top made by ankit-->
<div class="navbar" align="left">
<div align="right">
<a href="leaderboard">Leaderboard</a>
<a href="logout">Logout</a>
</div>
</div>
<h3 align="right"><font color="white">Hello, <?php echo $_SESSION["enrollment"]?></font></h3>
<form action="./questionconnect" method="post">
<!--<form action="trackconnect" method="post">-->
<div class="box black">
<div align="center">
<h1>War For Trezor</h1>
<?php $strValue = $_GET['id'];?>
<?php if ($strValue=="completed") { echo ('<meta http-equiv="refresh" content="0; URL=leaderboard">');} else{ ?>
<img src="<?php echo "https://i.imgur.com/".$strValue.".jpg"?>" height="300" width="300">
<br><br><br>
<div class="container">
<input type="text" placeholder="Your Answer" name="answer">
<br><br>
<input type="hidden" name="qid" value="1">
<button type="submit" name="submit"><strong>Submit</strong></button>
</div>
<?php }?>
</div>
</div>
</form>
<!--</form>-->
<div class="footer">
<a href="https://www.instagram.com/_ankit_jayswal/?hl=en"><img src="https://i.imgur.com/KjbQEwm.png" width="50" height="50"></a>
<a href="https://www.facebook.com/ryder.raj.ankit"><img src="https://i.imgur.com/ulkQfJY.png" width="50" height="50"></a>
<a href="https://in.linkedin.com/in/ankit-raj-2a74b017a"><img src="https://i.imgur.com/Y2kBHHP.png" width="50" height="50"></a>
</div>
</body>
<!--it will disable the right click among the web page-->
<script>
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
return false;
}
function mousehandler(e){
var myevent = (isNS) ? e : event;
var eventbutton = (isNS) ? myevent.which : myevent.button;
if((eventbutton==2)||(eventbutton==3)) return false;
}
document.oncontextmenu = mischandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;
</script>
<script>
document.onkeydown = function(e) {
if(event.keyCode == 123) {
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){
return false;
}
}
</script>
</html>
<?php
}
else{
echo ('<meta http-equiv="refresh" content="0; URL=index?login=incorrect">');
}
?>