/
USE_THIS_AS_TEMPLATE.php
60 lines (40 loc) · 1.7 KB
/
USE_THIS_AS_TEMPLATE.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
<? ob_start(); session_start();?>
<!DOCTYPE HTML>
<?php
$level=basename(__FILE__, ".php"); //level number (derived from file name) DO NOT MODIFY THIS
require_once("config.php");
//**************************************************************
//You may modify these values
//Directly modify the html (in this file) if you wish to make advanced changes
$question = "Answer to life the universe and everything"; //question
$correct="42"; //the correct answer
//name of image to be displayed (please give a unpredictable random string as the name of the image. This is so that the player does not guess the name of images in other level)
$image="img/1.jpg";
//End Of You may modify these values
//**************************************************************
require('./includes/check.php');
?>
<?require('./includes/html1.php');?>
<header>
<h2 style="text-transform: none;"><? echo $question ?></h2>
</header>
<hr />
<?require('./includes/html_incorrect.php'); //Display that the answer is incorrect?>
<? //Image is placed here ?>
<img src="<?echo $image?>" height="281" width="300"/>
<?require('./includes/html_form.php');?>
<?require('./includes/bottomlinks.php');?>
<footer id="footer">
<p><span style="opacity: 0.1;">A SECRET HINT</span></p>
</footer>
</div>
<!--[if lte IE 8]><script src="assets/js/respond.min.js"></script><![endif]-->
<script>
if ('addEventListener' in window) {
window.addEventListener('load', function() { document.body.className = document.body.className.replace(/\bis-loading\b/, ''); });
document.body.className += (navigator.userAgent.match(/(MSIE|rv:11\.0)/) ? ' is-ie' : '');
}
</script>
</body>
</html>
<? ob_flush(); ?>