Gazelle/sections/inbox/index.php

46 lines
969 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
enforce_login();
2013-05-01 08:00:16 +00:00
$StaffIDs = $Cache->get_value('staff_ids');
if (!is_array($StaffIDs)) {
$DB->query("
SELECT m.ID, m.Username
2011-03-28 14:21:28 +00:00
FROM users_main AS m
2013-05-01 08:00:16 +00:00
JOIN permissions AS p ON p.ID=m.PermissionID
2011-03-28 14:21:28 +00:00
WHERE p.DisplayStaff='1'");
2013-05-01 08:00:16 +00:00
while (list($StaffID, $StaffName) = $DB->next_record()) {
2011-03-28 14:21:28 +00:00
$StaffIDs[$StaffID] = $StaffName;
}
uasort($StaffIDs, 'strcasecmp');
2013-05-01 08:00:16 +00:00
$Cache->cache_value('staff_ids', $StaffIDs);
2011-03-28 14:21:28 +00:00
}
2013-05-01 08:00:16 +00:00
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = '';
}
switch ($_REQUEST['action']) {
2011-03-28 14:21:28 +00:00
case 'takecompose':
require('takecompose.php');
break;
case 'takeedit':
require('takeedit.php');
break;
case 'compose':
require('compose.php');
break;
case 'viewconv':
require('conversation.php');
break;
case 'masschange':
require('massdelete_handle.php');
break;
case 'get_post':
require('get_post.php');
2013-02-22 08:00:24 +00:00
break;
2011-03-28 14:21:28 +00:00
case 'forward':
require('forward.php');
break;
default:
require(SERVER_ROOT.'/sections/inbox/inbox.php');
}