-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
63 lines (63 loc) · 2.1 KB
/
index.php
File metadata and controls
63 lines (63 loc) · 2.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
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title>CDN GUI v0.1</title>
<script type="text/javascript" src="inc/visjs/vis.js"></script>
<script type="text/javascript" src="inc/jquery/jquery-1.11.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="inc/style.css">
</head>
<body>
<h1 class="title">CDN GUI v 1.0</h1>
<!-- <div>
<h3>GET DEBUG:</h3>
<?php print_r($_GET); ?>
</div>-->
<?php
//Load config
include_once 'config.php';
//Connect to DB every time the page loads
include_once 'dbconnection.php';
//Include menu here, so it is shown on every page
include 'menu.php';
?>
<div class="content" style="width:1024px;">
<?php
//Content
if (isset($_GET['do'])) {
switch ($_GET['do']){
case $_GET['do']=='routes':
include 'routes.php';
break;
case $_GET['do']=='topology':
include 'topology.php';
break;
case $_GET['do']=='requestrouters':
include 'requestrouters.php';
break;
case $_GET['do']=='serviceengines';
include 'serviceengines.php';
break;
case $_GET['do']=='cdnize';
include 'cdnize.php';
break;
case $_GET['do']=='sessions';
include 'sessions.php';
break;
default:
include 'about.php';
break;
}
} else {
include 'about.php';
}
//end content
?>
</div>
</body>
</html>