This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
admin.php
68 lines (57 loc) · 2.31 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
<?php
/*
+------------------------------------------------
| TBDev.net BitTorrent Tracker PHP
| =============================================
| by CoLdFuSiOn
| (c) 2003 - 2011 TBDev.Net
| http://www.tbdev.net
| =============================================
| svn: http://sourceforge.net/projects/tbdevnet/
| Licence Info: GPL
+------------------------------------------------
| $Date$
| $Revision$
| $Author$
| $URL$
+------------------------------------------------
*/
define('IN_TBDEV_ADMIN', TRUE);
require_once "include/bittorrent.php";
require_once "include/user_functions.php";
dbconn(false);
loggedinorreturn();
$lang = array_merge( load_language('global'), load_language('admin') );
if ($CURUSER['class'] < UC_MODERATOR)
stderr("{$lang['admin_user_error']}", "{$lang['admin_unexpected']}");
$action = isset($_GET["action"]) ? $_GET["action"] : '';
$forum_pic_url = $TBDEV['pic_base_url'] . 'forumicons/';
define( 'F_IMAGES', $TBDEV['pic_base_url'] . 'forumicons');
define( 'POST_ICONS', F_IMAGES.'/post_icons');
$ad_actions = array('bans' => 'bans',
'adduser' => 'adduser',
'stats' => 'stats',
'delacct' => 'delacct',
'testip' => 'testip',
'usersearch' => 'usersearch',
'mysql_overview' => 'mysql_overview',
'mysql_stats' => 'mysql_stats',
'categories' => 'categories',
'newusers' => 'newusers',
'resetpassword' => 'resetpassword',
'docleanup' => 'docleanup',
'log' => 'log',
'news' => 'news',
'forummanage' => 'forummanage',
'rules' => 'rules',
'cleanup_manager' => 'cleanup_manager'
);
if( in_array($action, $ad_actions) AND file_exists( "admin/{$ad_actions[ $action ]}.php" ) )
{
require_once "admin/{$ad_actions[ $action ]}.php";
}
else
{
require_once "admin/index.php";
}
?>