forked from Bigjoos/U-232
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
82 lines (74 loc) · 3.63 KB
/
admin.php
File metadata and controls
82 lines (74 loc) · 3.63 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
<?php
/**
* http://btdev.net:1337/svn/test/Installer09_Beta
* Licence Info: GPL
* Copyright (C) 2010 BTDev Installer v.1
* A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
* Project Leaders: Mindless,putyn.
**/
define('IN_TBDEV_ADMIN', TRUE);
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
require_once(INCL_DIR.'user_functions.php');
dbconn(false);
loggedinorreturn();
$lang = array_merge( load_language('global'), load_language('admin') );
/** new way **/
if (!min_class(UC_STAFF)) // or just simply: if (!min_class(UC_STAFF))
header( "Location: {$TBDEV['baseurl']}/index.php");
$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',
'shistory' => 'shistory',
'categories' => 'categories',
'docleanup' => 'docleanup',
'log' => 'log',
'news' => 'news',
'freeleech' => 'freeleech',
'freeusers' => 'freeusers',
'moforums' => 'moforums',
'donations' => 'donations',
'slotmanage' => 'slotmanage',
'failedlogins' => 'failedlogins',
'cheaters' => 'cheaters',
'inviteadd' => 'inviteadd',
'flush' => 'flush',
'themes' => 'themes',
'editlog' => 'editlog',
'reset' => 'reset',
'ipcheck' => 'ipcheck',
'inactive' => 'inactive',
'snatched_torrents' => 'snatched_torrents',
'events' => 'events',
'bonusmanage' => 'bonusmanage',
'floodlimit' => 'floodlimit',
'stats_extra' => 'stats_extra',
'polls_manager' => 'polls_manager',
'msubforums' => 'msubforums',
'findnotconnectable' => 'findnotconnectable',
'namechanger' => 'namechanger',
'backup' => 'backup',
'pmview' => 'pmview',
'reports' => 'reports',
'nameblacklist' => 'nameblacklist',
'system_view' => 'system_view',
'datareset' => 'datareset',
'forummanager' => 'forummanager'
);
if( in_array($action, $ad_actions) AND file_exists( "admin/{$ad_actions[ $action ]}.php" ) )
{
require_once "admin/{$ad_actions[ $action ]}.php";
}
else
{
require_once "staffpanel.php";
}
?>