-
Notifications
You must be signed in to change notification settings - Fork 4
/
admin.php
222 lines (213 loc) · 5.6 KB
/
admin.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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?php
define('MODE', 'ADMIN');
define('ROOT_PATH', str_replace('\\', '/',dirname(__FILE__)).'/');
require('includes/common.php');
require_once('includes/classes/class.Log.php');
if ($USER['authlevel'] == AUTH_USR) HTTP::redirectTo('game.php');
if(!isset($_SESSION['admin_login']) || $_SESSION['admin_login'] != $USER['password'])
{
include_once('includes/pages/adm/ShowLoginPage.php');
ShowLoginPage();
exit;
}
$page = HTTP::_GP('page', '');
$uni = HTTP::_GP('uni', 0);
if($USER['authlevel'] >= AUTH_OPS && !empty($uni))
$_SESSION['adminuni'] = $uni;
if(empty($_SESSION['adminuni']))
$_SESSION['adminuni'] = $uni;
switch($page)
{
case 'logout':
include_once('includes/pages/adm/ShowLogoutPage.php');
ShowLogoutPage();
break;
case 'voucher':
include_once('includes/pages/adm/ShowVoucherPage.php');
ShowVoucherPage();
break;
case 'banmessage':
include_once('includes/pages/adm/ShowBanmessagePage.php');
ShowBanmessagePage();
break;
case 'paybonus':
include_once('includes/pages/adm/ShowPaybonusPage.php');
ShowPaybonusPage();
break;
case 'timebonus':
include_once('includes/pages/adm/ShowTimebonusPage.php');
ShowTimebonusPage();
break;
case 'premium':
include_once('includes/pages/adm/ShowPremiumPage.php');
ShowPremiumPage();
break;
case 'infos':
include_once('includes/pages/adm/ShowInformationPage.php');
ShowInformationPage();
break;
case 'rights':
include_once('includes/pages/adm/ShowRightsPage.php');
ShowRightsPage();
break;
case 'config':
include_once('includes/pages/adm/ShowConfigBasicPage.php');
ShowConfigBasicPage();
break;
case 'configuni':
include_once('includes/pages/adm/ShowConfigUniPage.php');
ShowConfigUniPage();
break;
case 'chat':
include_once('includes/pages/adm/ShowChatConfigPage.php');
ShowChatConfigPage();
break;
case 'teamspeak':
include_once('includes/pages/adm/ShowTeamspeakPage.php');
ShowTeamspeakPage();
break;
case 'facebook':
include_once('includes/pages/adm/ShowFacebookPage.php');
ShowFacebookPage();
break;
case 'module':
include_once('includes/pages/adm/ShowModulePage.php');
ShowModulePage();
break;
case 'statsconf':
include_once('includes/pages/adm/ShowStatsPage.php');
ShowStatsPage();
break;
case 'fleetsconf':
include_once('includes/pages/adm/ShowFleetsConfPage.php');
ShowFleetsConfPage();
break;
case 'disclamer':
include_once('includes/pages/adm/ShowDisclamerPage.php');
ShowDisclamerPage();
break;
case 'create':
include_once('includes/pages/adm/ShowCreatorPage.php');
ShowCreatorPage();
break;
case 'accounteditor':
include_once('includes/pages/adm/ShowAccountEditorPage.php');
ShowAccountEditorPage();
break;
case 'active':
include_once('includes/pages/adm/ShowActivePage.php');
ShowActivePage();
break;
case 'bans':
include_once('includes/pages/adm/ShowBanPage.php');
ShowBanPage();
break;
case 'mesreport':
include_once('includes/pages/adm/ShowMesreportPage.php');
ShowMesreportPage();
break;
case 'messagelist':
include_once('includes/pages/adm/ShowMessageListPage.php');
ShowMessageListPage();
break;
case 'globalmessage':
include_once('includes/pages/adm/ShowSendMessagesPage.php');
ShowSendMessagesPage();
break;
case 'gmrate':
include_once('includes/pages/adm/ShowGmratePage.php');
ShowGmratePage();
break;
case 'fleets':
include_once('includes/pages/adm/ShowFlyingFleetPage.php');
ShowFlyingFleetPage();
break;
case 'accountdata':
include_once('includes/pages/adm/ShowAccountDataPage.php');
ShowAccountDataPage();
break;
case 'support':
include_once('includes/pages/adm/ShowSupportPage.php');
new ShowSupportPage();
break;
case 'password':
include_once('includes/pages/adm/ShowPassEncripterPage.php');
ShowPassEncripterPage();
break;
case 'search':
include_once('includes/pages/adm/ShowSearchPage.php');
ShowSearchPage();
break;
case 'qeditor':
include_once('includes/pages/adm/ShowQuickEditorPage.php');
ShowQuickEditorPage();
break;
case 'statsupdate':
include_once('includes/pages/adm/ShowStatUpdatePage.php');
ShowStatUpdatePage();
break;
case 'reset':
include_once('includes/pages/adm/ShowResetPage.php');
ShowResetPage();
break;
case 'news':
include_once('includes/pages/adm/ShowNewsPage.php');
ShowNewsPage();
break;
case 'topnav':
include_once('includes/pages/adm/ShowTopnavPage.php');
ShowTopnavPage();
break;
case 'mods':
include_once('includes/pages/adm/ShowModVersionPage.php');
ShowModVersionPage();
break;
case 'overview':
include_once('includes/pages/adm/ShowOverviewPage.php');
ShowOverviewPage();
break;
case 'menu':
include_once('includes/pages/adm/ShowMenuPage.php');
ShowMenuPage();
break;
case 'clearcache':
include_once('includes/pages/adm/ShowClearCachePage.php');
ShowClearCachePage();
break;
case 'universe':
include_once('includes/pages/adm/ShowUniversePage.php');
ShowUniversePage();
break;
case 'multiips':
include_once('includes/pages/adm/ShowMultiIPPage.php');
ShowMultiIPPage();
break;
case 'log':
include_once('includes/pages/adm/ShowLogPage.php');
ShowLog();
break;
case 'vertify':
include_once('includes/pages/adm/ShowVertify.php');
ShowVertify();
break;
case 'cronjob':
include_once('includes/pages/adm/ShowCronjobPage.php');
ShowCronjob();
break;
case 'giveaway':
include_once('includes/pages/adm/ShowGiveawayPage.php');
ShowGiveaway();
break;
case 'autocomplete':
include_once('includes/pages/adm/ShowAutoCompletePage.php');
ShowAutoCompletePage();
break;
case 'dump':
include_once('includes/pages/adm/ShowDumpPage.php');
ShowDumpPage();
break;
default:
include_once('includes/pages/adm/ShowIndexPage.php');
ShowIndexPage();
break;
}