Gazelle/sections/tools/index.php

527 lines
14 KiB
PHP
Raw Permalink Normal View History

2011-03-28 14:21:28 +00:00
<?
/*****************************************************************
2013-04-19 08:00:55 +00:00
Tools switch center
2011-03-28 14:21:28 +00:00
2013-04-19 08:00:55 +00:00
This page acts as a switch for the tools pages.
2011-03-28 14:21:28 +00:00
2013-04-19 08:00:55 +00:00
TODO!
-Unify all the code standards and file names (tool_list.php,tool_add.php,tool_alter.php)
2011-03-28 14:21:28 +00:00
*****************************************************************/
2013-04-13 08:00:19 +00:00
if (isset($argv[1])) {
2011-03-28 14:21:28 +00:00
$_REQUEST['action'] = $argv[1];
} else {
2013-04-17 08:00:58 +00:00
if (empty($_REQUEST['action']) || ($_REQUEST['action'] != 'public_sandbox' && $_REQUEST['action'] != 'ocelot')) {
2011-03-28 14:21:28 +00:00
enforce_login();
}
}
2013-04-13 08:00:19 +00:00
if (!isset($_REQUEST['action'])) {
2011-03-28 14:21:28 +00:00
include(SERVER_ROOT.'/sections/tools/tools.php');
die();
}
2013-04-24 08:00:23 +00:00
if (substr($_REQUEST['action'], 0, 7) == 'sandbox' && !isset($argv[1])) {
2011-03-28 14:21:28 +00:00
if (!check_perms('site_debug')) {
error(403);
}
}
2013-04-24 08:00:23 +00:00
if (substr($_REQUEST['action'], 0, 12) == 'update_geoip' && !isset($argv[1])) {
2011-09-14 08:00:13 +00:00
if (!check_perms('site_debug')) {
error(403);
}
}
2013-06-06 08:01:03 +00:00
if (substr($_REQUEST['action'],0,16) == 'rerender_gallery' && !isset($argv[1])) {
if (!check_perms('site_debug')) {
error(403);
}
}
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/classes/validate.class.php');
2013-04-17 08:00:58 +00:00
$Val = new VALIDATE;
2011-03-28 14:21:28 +00:00
2013-05-27 08:00:58 +00:00
include(SERVER_ROOT.'/classes/feed.class.php');
2011-03-28 14:21:28 +00:00
$Feed = new FEED;
2013-04-24 08:00:23 +00:00
switch ($_REQUEST['action']) {
2011-03-28 14:21:28 +00:00
case 'phpinfo':
2013-04-17 08:00:58 +00:00
if (!check_perms('site_debug')) {
error(403);
}
2011-03-28 14:21:28 +00:00
phpinfo();
break;
//Services
case 'get_host':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/services/get_host.php');
2011-03-28 14:21:28 +00:00
break;
case 'get_cc':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/services/get_cc.php');
2011-03-28 14:21:28 +00:00
break;
//Managers
case 'forum':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/forum_list.php');
2011-03-28 14:21:28 +00:00
break;
case 'forum_alter':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/forum_alter.php');
2011-03-28 14:21:28 +00:00
break;
case 'whitelist':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/whitelist_list.php');
2011-03-28 14:21:28 +00:00
break;
case 'whitelist_alter':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/whitelist_alter.php');
2011-03-28 14:21:28 +00:00
break;
2016-03-18 08:00:27 +00:00
case 'enable_requests':
include(SERVER_ROOT.'/sections/tools/managers/enable_requests.php');
break;
case 'ajax_take_enable_request':
if (FEATURE_EMAIL_REENABLE) {
include(SERVER_ROOT.'/sections/tools/managers/ajax_take_enable_request.php');
} else {
// Prevent post requests to the ajax page
header("Location: tools.php");
die();
}
break;
2011-03-28 14:21:28 +00:00
case 'login_watch':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/login_watch.php');
2011-03-28 14:21:28 +00:00
break;
case 'recommend':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/recommend_list.php');
2011-03-28 14:21:28 +00:00
break;
case 'recommend_add':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/recommend_add.php');
2011-03-28 14:21:28 +00:00
break;
case 'recommend_alter':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/recommend_alter.php');
2011-03-28 14:21:28 +00:00
break;
2013-02-22 08:00:24 +00:00
2013-01-01 08:00:24 +00:00
case 'recommend_restore':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/recommend_restore.php');
2013-01-01 08:00:24 +00:00
break;
2011-03-28 14:21:28 +00:00
case 'email_blacklist':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/email_blacklist.php');
2011-03-28 14:21:28 +00:00
break;
2013-05-16 08:00:10 +00:00
case 'email_blacklist_alter':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/email_blacklist_alter.php');
2013-01-21 08:00:33 +00:00
break;
2013-02-22 08:00:24 +00:00
2013-05-16 08:00:10 +00:00
case 'email_blacklist_search':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/email_blacklist_search.php');
2011-03-28 14:21:28 +00:00
break;
case 'dnu':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/dnu_list.php');
2011-03-28 14:21:28 +00:00
break;
case 'dnu_alter':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/dnu_alter.php');
2011-03-28 14:21:28 +00:00
break;
case 'editnews':
case 'news':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/news.php');
2011-03-28 14:21:28 +00:00
break;
case 'takeeditnews':
2013-04-13 08:00:19 +00:00
if (!check_perms('admin_manage_news')) {
error(403);
}
2013-04-24 08:00:23 +00:00
if (is_number($_POST['newsid'])) {
2013-07-03 08:01:01 +00:00
$DB->query("
UPDATE news
SET Title = '".db_string($_POST['title'])."',
Body = '".db_string($_POST['body'])."'
WHERE ID = '".db_string($_POST['newsid'])."'");
2011-03-28 14:21:28 +00:00
$Cache->delete_value('news');
$Cache->delete_value('feed_news');
}
header('Location: index.php');
break;
case 'deletenews':
2013-04-13 08:00:19 +00:00
if (!check_perms('admin_manage_news')) {
error(403);
}
2013-04-24 08:00:23 +00:00
if (is_number($_GET['id'])) {
2011-03-28 14:21:28 +00:00
authorize();
2013-07-03 08:01:01 +00:00
$DB->query("
DELETE FROM news
WHERE ID = '".db_string($_GET['id'])."'");
2011-03-28 14:21:28 +00:00
$Cache->delete_value('news');
$Cache->delete_value('feed_news');
// Deleting latest news
$LatestNews = $Cache->get_value('news_latest_id');
2013-04-13 08:00:19 +00:00
if ($LatestNews !== false && $LatestNews == $_GET['id']) {
2011-03-28 14:21:28 +00:00
$Cache->delete_value('news_latest_id');
2013-10-16 08:01:00 +00:00
$Cache->delete_value('news_latest_title');
2011-03-28 14:21:28 +00:00
}
}
header('Location: index.php');
break;
case 'takenewnews':
2013-04-13 08:00:19 +00:00
if (!check_perms('admin_manage_news')) {
error(403);
}
2011-03-28 14:21:28 +00:00
2013-07-03 08:01:01 +00:00
$DB->query("
INSERT INTO news (UserID, Title, Body, Time)
VALUES ('$LoggedUser[ID]', '".db_string($_POST['title'])."', '".db_string($_POST['body'])."', '".sqltime()."')");
2015-01-28 08:00:26 +00:00
$Cache->delete_value('news_latest_id');
$Cache->delete_value('news_latest_title');
$Cache->delete_value('news');
2013-02-22 08:00:24 +00:00
2013-05-16 16:15:57 +00:00
2013-02-22 08:00:24 +00:00
2014-01-20 08:01:21 +00:00
NotificationsManager::send_push(NotificationsManager::get_push_enabled_users(), $_POST['title'], $_POST['body'], site_url() . 'index.php', NotificationsManager::NEWS);
2011-03-28 14:21:28 +00:00
header('Location: index.php');
break;
2013-02-22 08:00:24 +00:00
2011-10-08 08:00:14 +00:00
case 'tokens':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/tokens.php');
2011-10-08 08:00:14 +00:00
break;
2016-02-06 08:00:28 +00:00
case 'multiple_freeleech':
include(SERVER_ROOT.'/sections/tools/managers/multiple_freeleech.php');
break;
2011-10-17 08:00:16 +00:00
case 'ocelot':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/ocelot.php');
2011-10-17 08:00:16 +00:00
break;
2014-02-22 08:00:34 +00:00
case 'ocelot_info':
include(SERVER_ROOT.'/sections/tools/data/ocelot_info.php');
break;
2012-02-10 08:00:19 +00:00
case 'official_tags':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/official_tags.php');
2012-02-10 08:00:19 +00:00
break;
2011-03-28 14:21:28 +00:00
2013-02-07 08:00:47 +00:00
case 'tag_aliases':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/tag_aliases.php');
2013-02-07 08:00:47 +00:00
break;
2013-06-09 08:01:21 +00:00
case 'label_aliases':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/label_aliases.php');
2013-06-09 08:01:21 +00:00
break;
2013-06-15 08:00:45 +00:00
case 'change_log':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/change_log.php');
2013-06-15 08:00:45 +00:00
break;
2013-08-28 23:08:41 +00:00
case 'global_notification':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/global_notification.php');
2013-08-28 23:08:41 +00:00
break;
case 'take_global_notification':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/take_global_notification.php');
2013-08-28 23:08:41 +00:00
break;
2013-02-07 08:00:47 +00:00
case 'permissions':
2013-04-13 08:00:19 +00:00
if (!check_perms('admin_manage_permissions')) {
error(403);
}
2011-03-28 14:21:28 +00:00
if (!empty($_REQUEST['id'])) {
2013-07-03 08:01:01 +00:00
$Val->SetFields('name', true, 'string', 'You did not enter a valid name for this permission set.');
$Val->SetFields('level', true, 'number', 'You did not enter a valid level for this permission set.');
$Val->SetFields('maxcollages', true, 'number', 'You did not enter a valid number of personal collages.');
//$Val->SetFields('test', true, 'number', 'You did not enter a valid level for this permission set.');
2011-03-28 14:21:28 +00:00
if (is_numeric($_REQUEST['id'])) {
2013-07-03 08:01:01 +00:00
$DB->query("
SELECT p.ID, p.Name, p.Level, p.Secondary, p.PermittedForums, p.Values, p.DisplayStaff, COUNT(u.ID)
FROM permissions AS p
LEFT JOIN users_main AS u ON u.PermissionID = p.ID
WHERE p.ID = '".db_string($_REQUEST['id'])."'
GROUP BY p.ID");
list($ID, $Name, $Level, $Secondary, $Forums, $Values, $DisplayStaff, $UserCount) = $DB->next_record(MYSQLI_NUM, array(5));
2011-03-28 14:21:28 +00:00
2015-12-20 08:00:27 +00:00
if (!check_perms('admin_manage_permissions', $Level)) {
error(403);
}
2012-03-28 08:00:20 +00:00
$Values = unserialize($Values);
2013-02-22 08:00:24 +00:00
}
2011-03-28 14:21:28 +00:00
if (!empty($_POST['submit'])) {
$Err = $Val->ValidateForm($_POST);
if (!is_numeric($_REQUEST['id'])) {
2013-07-03 08:01:01 +00:00
$DB->query("
SELECT ID
FROM permissions
WHERE Level = '".db_string($_REQUEST['level'])."'");
2011-03-28 14:21:28 +00:00
list($DupeCheck)=$DB->next_record();
if ($DupeCheck) {
2013-04-17 08:00:58 +00:00
$Err = 'There is already a permission class with that level.';
2011-03-28 14:21:28 +00:00
}
}
2013-07-03 08:01:01 +00:00
$Values = array();
2011-03-28 14:21:28 +00:00
foreach ($_REQUEST as $Key => $Perms) {
2013-07-03 08:01:01 +00:00
if (substr($Key, 0, 5) == 'perm_') {
$Values[substr($Key, 5)] = (int)$Perms;
2013-04-13 08:00:19 +00:00
}
2011-03-28 14:21:28 +00:00
}
2013-04-13 08:00:19 +00:00
$Name = $_REQUEST['name'];
$Level = $_REQUEST['level'];
$Secondary = empty($_REQUEST['secondary']) ? 0 : 1;
2012-03-28 08:00:20 +00:00
$Forums = $_REQUEST['forums'];
2013-04-13 08:00:19 +00:00
$DisplayStaff = $_REQUEST['displaystaff'];
$Values['MaxCollages'] = $_REQUEST['maxcollages'];
2011-03-28 14:21:28 +00:00
if (!$Err) {
if (!is_numeric($_REQUEST['id'])) {
2013-05-16 08:00:10 +00:00
$DB->query("
2013-07-03 08:01:01 +00:00
INSERT INTO permissions (Level, Name, Secondary, PermittedForums, `Values`, DisplayStaff)
2013-05-16 08:00:10 +00:00
VALUES ('".db_string($Level)."',
'".db_string($Name)."',
$Secondary,
'".db_string($Forums)."',
'".db_string(serialize($Values))."',
'".db_string($DisplayStaff)."')");
2011-03-28 14:21:28 +00:00
} else {
2013-05-16 08:00:10 +00:00
$DB->query("
UPDATE permissions
2013-07-03 08:01:01 +00:00
SET Level = '".db_string($Level)."',
Name = '".db_string($Name)."',
Secondary = $Secondary,
PermittedForums = '".db_string($Forums)."',
`Values` = '".db_string(serialize($Values))."',
DisplayStaff = '".db_string($DisplayStaff)."'
WHERE ID = '".db_string($_REQUEST['id'])."'");
2011-03-28 14:21:28 +00:00
$Cache->delete_value('perm_'.$_REQUEST['id']);
2012-03-28 08:00:20 +00:00
if ($Secondary) {
2013-05-16 08:00:10 +00:00
$DB->query("
SELECT DISTINCT UserID
FROM users_levels
WHERE PermissionID = ".db_string($_REQUEST['id']));
2012-03-28 08:00:20 +00:00
while ($UserID = $DB->next_record()) {
2013-07-03 08:01:01 +00:00
$Cache->delete_value("user_info_heavy_$UserID");
2012-03-28 08:00:20 +00:00
}
}
2011-03-28 14:21:28 +00:00
}
$Cache->delete_value('classes');
} else {
error($Err);
}
}
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/permissions_alter.php');
2011-03-28 14:21:28 +00:00
} else {
if (!empty($_REQUEST['removeid'])) {
2013-07-03 08:01:01 +00:00
$DB->query("
DELETE FROM permissions
WHERE ID = '".db_string($_REQUEST['removeid'])."'");
$DB->query("
SELECT UserID
FROM users_levels
WHERE PermissionID = '".db_string($_REQUEST['removeid'])."'");
2012-03-28 08:00:20 +00:00
while (list($UserID) = $DB->next_record()) {
2013-07-03 08:01:01 +00:00
$Cache->delete_value("user_info_$UserID");
$Cache->delete_value("user_info_heavy_$UserID");
2012-03-28 08:00:20 +00:00
}
2013-07-03 08:01:01 +00:00
$DB->query("
DELETE FROM users_levels
WHERE PermissionID = '".db_string($_REQUEST['removeid'])."'");
$DB->query("
SELECT ID
FROM users_main
WHERE PermissionID = '".db_string($_REQUEST['removeid'])."'");
2012-03-28 08:00:20 +00:00
while (list($UserID) = $DB->next_record()) {
2013-07-03 08:01:01 +00:00
$Cache->delete_value("user_info_$UserID");
$Cache->delete_value("user_info_heavy_$UserID");
2012-03-28 08:00:20 +00:00
}
2013-07-03 08:01:01 +00:00
$DB->query("
UPDATE users_main
SET PermissionID = '".USER."'
WHERE PermissionID = '".db_string($_REQUEST['removeid'])."'");
2011-03-28 14:21:28 +00:00
$Cache->delete_value('classes');
}
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/permissions_list.php');
2011-03-28 14:21:28 +00:00
}
break;
case 'ip_ban':
2013-07-03 08:01:01 +00:00
//TODO: Clean up DB table ip_bans.
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/bans.php');
2011-03-28 14:21:28 +00:00
break;
2012-07-22 08:00:16 +00:00
case 'quick_ban':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/misc/quick_ban.php');
2012-07-22 08:00:16 +00:00
break;
2011-03-28 14:21:28 +00:00
//Data
case 'registration_log':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/data/registration_log.php');
2011-03-28 14:21:28 +00:00
break;
case 'donation_log':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/finances/donation_log.php');
2011-03-28 14:21:28 +00:00
break;
2013-08-31 08:00:54 +00:00
case 'bitcoin_unproc':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/finances/bitcoin_unproc.php');
2013-08-31 08:00:54 +00:00
break;
case 'bitcoin_balance':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/finances/bitcoin_balance.php');
2013-08-31 08:00:54 +00:00
break;
2013-05-16 08:00:10 +00:00
2013-08-28 23:08:41 +00:00
case 'donor_rewards':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/finances/donor_rewards.php');
2013-08-28 23:08:41 +00:00
break;
2011-03-28 14:21:28 +00:00
case 'upscale_pool':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/data/upscale_pool.php');
2011-03-28 14:21:28 +00:00
break;
case 'invite_pool':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/data/invite_pool.php');
2011-03-28 14:21:28 +00:00
break;
2013-05-16 08:00:10 +00:00
2011-03-28 14:21:28 +00:00
case 'torrent_stats':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/data/torrent_stats.php');
2011-03-28 14:21:28 +00:00
break;
case 'user_flow':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/data/user_flow.php');
2011-03-28 14:21:28 +00:00
break;
case 'economic_stats':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/data/economic_stats.php');
2011-03-28 14:21:28 +00:00
break;
case 'service_stats':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/development/service_stats.php');
2011-03-28 14:21:28 +00:00
break;
case 'database_specifics':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/data/database_specifics.php');
2011-03-28 14:21:28 +00:00
break;
case 'special_users':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/data/special_users.php');
2011-03-28 14:21:28 +00:00
break;
case 'browser_support':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/data/browser_support.php');
2011-03-28 14:21:28 +00:00
break;
2013-05-16 08:00:10 +00:00
//END Data
2011-03-28 14:21:28 +00:00
2013-05-16 08:00:10 +00:00
//Misc
2011-03-28 14:21:28 +00:00
case 'update_geoip':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/development/update_geoip.php');
2011-03-28 14:21:28 +00:00
break;
case 'dupe_ips':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/misc/dupe_ip.php');
2011-03-28 14:21:28 +00:00
break;
case 'clear_cache':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/development/clear_cache.php');
2011-03-28 14:21:28 +00:00
break;
case 'create_user':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/misc/create_user.php');
2011-03-28 14:21:28 +00:00
break;
case 'manipulate_tree':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/misc/manipulate_tree.php');
2011-03-28 14:21:28 +00:00
break;
2015-10-25 08:00:28 +00:00
case 'site_options':
include(SERVER_ROOT.'/sections/tools/development/site_options.php');
break;
2011-03-28 14:21:28 +00:00
case 'recommendations':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/misc/recommendations.php');
2011-03-28 14:21:28 +00:00
break;
case 'analysis':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/misc/analysis.php');
2011-03-28 14:21:28 +00:00
break;
2013-05-16 08:00:10 +00:00
2013-07-03 08:01:01 +00:00
case 'process_info':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/development/process_info.php');
2013-07-03 08:01:01 +00:00
break;
2013-04-26 08:00:25 +00:00
case 'rerender_gallery':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/development/rerender_gallery.php');
2013-05-16 08:00:10 +00:00
break;
2011-03-28 14:21:28 +00:00
case 'sandbox1':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/sandbox1.php');
2011-03-28 14:21:28 +00:00
break;
case 'sandbox2':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/sandbox2.php');
2011-03-28 14:21:28 +00:00
break;
2013-02-22 08:00:24 +00:00
2011-03-28 14:21:28 +00:00
case 'sandbox3':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/sandbox3.php');
2011-03-28 14:21:28 +00:00
break;
2013-02-22 08:00:24 +00:00
2011-03-28 14:21:28 +00:00
case 'sandbox4':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/sandbox4.php');
2011-03-28 14:21:28 +00:00
break;
2013-02-22 08:00:24 +00:00
2011-03-28 14:21:28 +00:00
case 'sandbox5':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/sandbox5.php');
2011-03-28 14:21:28 +00:00
break;
2013-02-22 08:00:24 +00:00
2011-03-28 14:21:28 +00:00
case 'sandbox6':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/sandbox6.php');
2011-03-28 14:21:28 +00:00
break;
2013-02-22 08:00:24 +00:00
2011-03-28 14:21:28 +00:00
case 'sandbox7':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/sandbox7.php');
2011-03-28 14:21:28 +00:00
break;
2013-02-22 08:00:24 +00:00
2011-03-28 14:21:28 +00:00
case 'sandbox8':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/sandbox8.php');
2011-03-28 14:21:28 +00:00
break;
2013-02-22 08:00:24 +00:00
2011-03-28 14:21:28 +00:00
case 'public_sandbox':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/public_sandbox.php');
2011-03-28 14:21:28 +00:00
break;
case 'mod_sandbox':
2013-04-13 08:00:19 +00:00
if (check_perms('users_mod')) {
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/mod_sandbox.php');
2011-03-28 14:21:28 +00:00
} else {
error(403);
}
break;
2013-07-04 08:00:56 +00:00
case 'bbcode_sandbox':
2013-10-03 08:01:01 +00:00
include(SERVER_ROOT.'/sections/tools/sandboxes/bbcode_sandbox.php');
2013-07-04 08:00:56 +00:00
break;
2013-08-28 23:08:41 +00:00
case 'calendar':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/calendar.php');
2013-08-28 23:08:41 +00:00
break;
case 'get_calendar_event':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/ajax_get_calendar_event.php');
2013-08-28 23:08:41 +00:00
break;
case 'take_calendar_event':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/ajax_take_calendar_event.php');
2013-08-28 23:08:41 +00:00
break;
2013-09-02 08:00:37 +00:00
case 'mass_pm':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/mass_pm.php');
2013-09-02 08:00:37 +00:00
break;
case 'take_mass_pm':
2013-10-01 23:08:42 +00:00
include(SERVER_ROOT.'/sections/tools/managers/take_mass_pm.php');
2013-09-02 08:00:37 +00:00
break;
2011-03-28 14:21:28 +00:00
default:
include(SERVER_ROOT.'/sections/tools/tools.php');
}
?>