-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
53 lines (42 loc) · 818 Bytes
/
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
<?php
$main = 'main.html';
$resume = 'resume.html';
$music = 'music.html';
$ship = 'ship.html';
$parser = 'parser.php';
/* Very basic security measure to ensure that
* the page variable has been passed, enabling you to
* ward off very basic mischief using htmlentities()
*/
if(isset($_GET['page'])){
$page = htmlentities($_GET['page']);
}else{
$page = NULL;
}
//Top half of the html page
include 'top.php';
//start php switching here
switch($page){
case 'main';
include $main;
break;
case 'resume':
include $resume;
break;
case 'music':
include $music;
break;
case 'ship':
include $ship;
break;
case 'parser':
include $parser;
break;
// Default page in case no variable is passed
default:
include $main;
break;
}
// Bottom half of the html page
include 'bottom.html';
?>