forked from XG-Project/XG-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
150 lines (144 loc) · 6.92 KB
/
Copy pathadmin.php
File metadata and controls
150 lines (144 loc) · 6.92 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?php
/**
* @package XG Project
* @copyright Copyright (c) 2008 - 2015
* @license http://opensource.org/licenses/gpl-3.0.html GPL-3.0
* @since Version 3.0.0
*/
define ( 'INSIDE' , TRUE );
define ( 'IN_ADMIN' , TRUE );
define ( 'XGP_ROOT' , './' );
require ( XGP_ROOT . 'application/core/common.php' );
include_once ( XGP_ROOT . 'application/libraries/adm/Administration_Lib.php' );
// check if SSL is setted
Administration_Lib::secure_connection();
switch ( ( isset ( $_GET['page'] ) ? $_GET['page'] : '' ) )
{
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case '':
default:
include_once ( XGP_ROOT . ADMIN_PATH . 'home.php');
new Home();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'moderation':
include_once ( XGP_ROOT . ADMIN_PATH . 'moderation.php');
new Moderation();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'reset':
include_once ( XGP_ROOT . ADMIN_PATH . 'reset.php');
new Reset();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'queries':
include_once ( XGP_ROOT . ADMIN_PATH . 'queries.php');
new Queries();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'logout':
Functions_Lib::redirect ( XGP_ROOT . 'game.php?page=overview' );
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'server':
include_once ( XGP_ROOT . ADMIN_PATH . 'server.php');
new Server();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'modules':
include_once ( XGP_ROOT . ADMIN_PATH . 'modules.php');
new Modules();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'registration':
include_once ( XGP_ROOT . ADMIN_PATH . 'registration.php');
new Registration();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'planets':
include_once ( XGP_ROOT . ADMIN_PATH . 'planets.php');
new Planets();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'statistics':
include_once ( XGP_ROOT . ADMIN_PATH . 'statistics.php');
new Statistics();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'premium':
include_once ( XGP_ROOT . ADMIN_PATH . 'premium.php');
new Premium();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'editor':
include_once ( XGP_ROOT . ADMIN_PATH . 'editor.php');
new Editor();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'information':
include_once ( XGP_ROOT . ADMIN_PATH . 'information.php');
new Information();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'errors':
include_once ( XGP_ROOT . ADMIN_PATH . 'errors.php');
new Errors();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'fleetmovements':
include_once ( XGP_ROOT . ADMIN_PATH . 'fleetmovements.php');
new FleetMovements();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'messages':
include_once ( XGP_ROOT . ADMIN_PATH . 'messages.php');
new Messages();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'maker':
include_once ( XGP_ROOT . ADMIN_PATH . 'maker.php');
new Maker();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'users':
include_once ( XGP_ROOT . ADMIN_PATH . 'users.php');
new Users();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'alliances':
include_once ( XGP_ROOT . ADMIN_PATH . 'alliances.php');
new Alliances();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'backup':
include_once ( XGP_ROOT . ADMIN_PATH . 'backup.php');
new Backup();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'encrypter':
include_once ( XGP_ROOT . ADMIN_PATH . 'encrypter.php');
new Encrypter();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'globalmessage':
include_once ( XGP_ROOT . ADMIN_PATH . 'globalmessage.php');
new Globalmessage();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'ban':
include_once ( XGP_ROOT . ADMIN_PATH . 'ban.php');
new Ban();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'buildstats':
include_once ( XGP_ROOT . ADMIN_PATH . 'buildstats.php');
new ShowBuildStatsPage();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case 'database':
include_once ( XGP_ROOT . ADMIN_PATH . 'data.php');
new Data();
break;
// ----------------------------------------------------------------------------------------------------------------------------------------------//
}
/* end of admin.php */