This repository has been archived by the owner on May 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
84 lines (73 loc) · 1.63 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
<?php
define('APPPATH', dirname(__FILE__) . '/');
include_once APPPATH . 'config.php';
include_once APPPATH . 'inc/security.php';
include_once APPPATH . 'inc/link.php';
define('LINKBASE', '/' . $base_URL);
if ($debug == true) {
include_once APPPATH . 'inc/debug.php';
}
$MENULINKS = array(
new Link(
'Home',
LINKBASE,
'fa-home',
'home'
),
new Link(
'Live Ticker',
LINKBASE . 'live-ticker',
'fa-bullhorn',
'live-ticker'
),
new Link(
'Server Stats',
LINKBASE . 'server-stats',
'fa-hdd-o',
'server-stats'
),
new Link(
'Top Lists',
LINKBASE . 'top-lists',
'fa-bar-chart-o',
'top-lists'
),
new Link(
'Top Players',
LINKBASE . 'top-players',
'fa-bar-chart-o',
'top-players'
),
new Link(
'Player List',
LINKBASE . 'player-list',
'fa-list',
'player-list'
),
);
if (!empty($map_url)) {
$MENULINKS[] = new Link(
'Map',
LINKBASE . 'map',
'fa-globe',
'map'
);
}
$view = '';
if (isset($_GET) === TRUE && isset($_GET['view']) === TRUE) {
$view = $_GET['view'];
}
switch (strtolower($view)) {
case '':
include_once APPPATH . 'pages/front-page.php';
break;
case 'index':
include_once APPPATH . 'pages/front-page.php';
break;
case 'players':
include_once APPPATH . 'pages/player.php';
break;
default:
include_once APPPATH . 'pages/' . strtolower($_GET['view']) . '.php';
break;
}