-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
71 lines (53 loc) · 1.4 KB
/
index.php
File metadata and controls
71 lines (53 loc) · 1.4 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
64
65
66
67
68
69
70
71
<?php
/*Import critical files and define page title
==================================================*/
define("INCLUDE_CHECK", true);
$base = dirname(__FILE__);
include("{$base}/includes/config.php");
include("{$base}/main.php");
include("{$base}/includes/defs.php");
include("{$base}/includes/check_access.php");
$page_title = "URsTats - Admin Control Panel";
include ($theme_path.'overallheader.php');
/*================================================*/
/*Determine Mode and set page body accordingly
==================================================*/
if(isset($_GET['mode'])){
$type = $_GET['type'];
$mode = $_GET['mode'];
$id = $_GET['id'];
switch ($mode){
case "view":
if(isset($type)){
switch ($type){
case "server":
echo view($id);
break;
case "indserver":
echo viewserver();
break;
case "cheaters":
echo vcheaters();
break;
default:
echo main();
}
}
else{
echo main();
}
break;
default:
echo main();
break;
}
}
else{
echo main();
}
/*================================================*/
/*Page footer
==================================================*/
include($theme_path.'overallfooter.php');
/*================================================*/
?>