Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: modcp.php 5380 2011-02-21 12:04:43Z Tomm $
| * $Id: modcp.php 5585 2011-09-13 13:14:41Z Tomm $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 46 | Zeile 46 |
---|
$moderated_forums = array(); if($mybb->usergroup['issupermod'] != 1) {
|
$moderated_forums = array(); if($mybb->usergroup['issupermod'] != 1) {
|
$query = $db->simple_select("moderators", "*", "id='{$mybb->user['uid']}' AND isgroup = '0'");
| $query = $db->simple_select("moderators", "*", "(id='{$mybb->user['uid']}' AND isgroup = '0') OR (id='{$mybb->user['usergroup']}' AND isgroup = '1')");
|
while($forum = $db->fetch_array($query)) { $flist .= ",'{$forum['fid']}'";
| while($forum = $db->fetch_array($query)) { $flist .= ",'{$forum['fid']}'";
|
Zeile 393 | Zeile 393 |
---|
FROM ".TABLE_PREFIX."moderatorlog l LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=l.uid) LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=l.tid)
|
FROM ".TABLE_PREFIX."moderatorlog l LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=l.uid) LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=l.tid)
|
WHERE 1=1 {$where}
| WHERE 1=1 {$where}{$tflist}
|
"); $rescount = $db->fetch_field($query, "count");
| "); $rescount = $db->fetch_field($query, "count");
|
Zeile 439 | Zeile 439 |
---|
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=l.tid) LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=l.fid) LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=l.pid)
|
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=l.tid) LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=l.fid) LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=l.pid)
|
WHERE 1=1 {$where}
| WHERE 1=1 {$where}{$tflist}
|
ORDER BY {$sortby} {$order} LIMIT {$start}, {$perpage} "); while($logitem = $db->fetch_array($query)) { $information = '';
|
ORDER BY {$sortby} {$order} LIMIT {$start}, {$perpage} "); while($logitem = $db->fetch_array($query)) { $information = '';
|
$logitem['action'] = htmlspecialchars_uni($logitem['action']);
| $logitem['action'] = $logitem['action'];
|
$log_date = my_date($mybb->settings['dateformat'], $logitem['dateline']); $log_time = my_date($mybb->settings['timeformat'], $logitem['dateline']); $trow = alt_trow();
| $log_date = my_date($mybb->settings['dateformat'], $logitem['dateline']); $log_time = my_date($mybb->settings['timeformat'], $logitem['dateline']); $trow = alt_trow();
|
Zeile 536 | Zeile 536 |
---|
$plugins->run_hooks("modcp_do_delete_announcement");
$db->delete_query("announcements", "aid='{$aid}'");
|
$plugins->run_hooks("modcp_do_delete_announcement");
$db->delete_query("announcements", "aid='{$aid}'");
|
| $cache->update_forumsdisplay();
|
redirect("modcp.php?action=announcements", $lang->redirect_delete_announcement); }
| redirect("modcp.php?action=announcements", $lang->redirect_delete_announcement); }
|
Zeile 663 | Zeile 664 |
---|
$plugins->run_hooks("modcp_do_new_announcement_end");
|
$plugins->run_hooks("modcp_do_new_announcement_end");
|
| $cache->update_forumsdisplay();
|
redirect("modcp.php?action=announcements", $lang->redirect_add_announcement); } else
| redirect("modcp.php?action=announcements", $lang->redirect_add_announcement); } else
|
Zeile 941 | Zeile 943 |
---|
$plugins->run_hooks("modcp_do_edit_announcement_end");
|
$plugins->run_hooks("modcp_do_edit_announcement_end");
|
| $cache->update_forumsdisplay();
|
redirect("modcp.php?action=announcements", $lang->redirect_edit_announcement); } else
| redirect("modcp.php?action=announcements", $lang->redirect_edit_announcement); } else
|
Zeile 1222 | Zeile 1225 |
---|
{ foreach($threads_to_delete as $tid) {
|
{ foreach($threads_to_delete as $tid) {
|
$moderation->delete_thread($thread['tid']);
| $moderation->delete_thread($tid);
|
} log_moderator_action(array('tids' => $threads_to_delete), $lang->multi_delete_threads); }
| } log_moderator_action(array('tids' => $threads_to_delete), $lang->multi_delete_threads); }
|
Zeile 1623 | Zeile 1626 |
---|
$errors = '';
// Validate the user and get any errors that might have occurred.
|
$errors = '';
// Validate the user and get any errors that might have occurred.
|
$userhandler->admin_override = true;
| |
if(!$userhandler->validate_user()) { $errors = $userhandler->get_friendly_errors();
| if(!$userhandler->validate_user()) { $errors = $userhandler->get_friendly_errors();
|
Zeile 3282 | Zeile 3284 |
---|
while($logitem = $db->fetch_array($query)) { $information = '';
|
while($logitem = $db->fetch_array($query)) { $information = '';
|
$logitem['action'] = htmlspecialchars_uni($logitem['action']);
| $logitem['action'] = $logitem['action'];
|
$log_date = my_date($mybb->settings['dateformat'], $logitem['dateline']); $log_time = my_date($mybb->settings['timeformat'], $logitem['dateline']); $trow = alt_trow();
| $log_date = my_date($mybb->settings['dateformat'], $logitem['dateline']); $log_time = my_date($mybb->settings['timeformat'], $logitem['dateline']); $trow = alt_trow();
|