Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: moderation.php 3826 2008-05-10 16:49:24Z Tikitiki $
| * $Id: moderation.php 4083 2008-08-08 02:09:05Z Tikitiki $
|
*/
define("IN_MYBB", 1);
|
*/
define("IN_MYBB", 1);
|
| define('THIS_SCRIPT', 'moderation.php');
|
$templatelist = 'changeuserbox';
| $templatelist = 'changeuserbox';
|
Zeile 600 | Zeile 601 |
---|
$info = ''; if($modaction['tsubject']) {
|
$info = ''; if($modaction['tsubject']) {
|
$info .= "<strong>$lang->thread</strong> <a href=\"".get_thread_link($modaction['tid'])."\">".$modaction['tsubject']."</a><br />";
| $info .= "<strong>$lang->thread</strong> <a href=\"".get_thread_link($modaction['tid'])."\">".htmlspecialchars_uni($modaction['tsubject'])."</a><br />";
|
} if($modaction['fname']) {
|
} if($modaction['fname']) {
|
$info .= "<strong>$lang->forum</strong> <a href=\"".get_forum_link($modaction['fid'])."\">".$modaction['fname']."</a><br />";
| $info .= "<strong>$lang->forum</strong> <a href=\"".get_forum_link($modaction['fid'])."\">".htmlspecialchars_uni($modaction['fname'])."</a><br />";
|
} if($modaction['psubject']) {
|
} if($modaction['psubject']) {
|
$info .= "<strong>$lang->post</strong> <a href=\"".get_post_link($modaction['pid'])."#pid".$modaction['pid']."\">".$modaction['psubject']."</a>";
| $info .= "<strong>$lang->post</strong> <a href=\"".get_post_link($modaction['pid'])."#pid".$modaction['pid']."\">".htmlspecialchars_uni($modaction['psubject'])."</a>";
|
}
eval("\$modactions .= \"".$templates->get("moderation_threadnotes_modaction")."\";");
| }
eval("\$modactions .= \"".$templates->get("moderation_threadnotes_modaction")."\";");
|
Zeile 1673 | Zeile 1674 |
---|
{ error($lang->error_inline_nopostsselected); }
|
{ error($lang->error_inline_nopostsselected); }
|
| if(!is_moderator_by_tids($tids)) { error_no_permission(); }
|
$custommod->execute(intval($mybb->input['action']), $tids); $lang->custom_tool = $lang->sprintf($lang->custom_tool, $tool['name']); log_moderator_action($modlogdata, $lang->custom_tool); if($mybb->input['inlinetype'] == 'search')
|
$custommod->execute(intval($mybb->input['action']), $tids); $lang->custom_tool = $lang->sprintf($lang->custom_tool, $tool['name']); log_moderator_action($modlogdata, $lang->custom_tool); if($mybb->input['inlinetype'] == 'search')
|
{
| {
|
clearinline($mybb->input['searchid'], 'search'); $lang->redirect_customtool_search = $lang->sprintf($lang->redirect_customtool_search, $tool['name']); redirect($mybb->input['url'], $lang->redirect_customtool_search);
| clearinline($mybb->input['searchid'], 'search'); $lang->redirect_customtool_search = $lang->sprintf($lang->redirect_customtool_search, $tool['name']); redirect($mybb->input['url'], $lang->redirect_customtool_search);
|
Zeile 1687 | Zeile 1693 |
---|
clearinline($fid, "forum"); $lang->redirect_customtool_forum = $lang->sprintf($lang->redirect_customtool_forum, $tool['name']); redirect(get_forum_link($fid), $lang->redirect_customtool_forum);
|
clearinline($fid, "forum"); $lang->redirect_customtool_forum = $lang->sprintf($lang->redirect_customtool_forum, $tool['name']); redirect(get_forum_link($fid), $lang->redirect_customtool_forum);
|
}
| }
|
break; } elseif($tool['type'] == 't' && $mybb->input['modtype'] == 'thread') {
|
break; } elseif($tool['type'] == 't' && $mybb->input['modtype'] == 'thread') {
|
| if(!is_moderator_by_tids($tid)) { error_no_permission(); }
|
$ret = $custommod->execute(intval($mybb->input['action']), $tid); $lang->custom_tool = $lang->sprintf($lang->custom_tool, $tool['name']); log_moderator_action($modlogdata, $lang->custom_tool);
| $ret = $custommod->execute(intval($mybb->input['action']), $tid); $lang->custom_tool = $lang->sprintf($lang->custom_tool, $tool['name']); log_moderator_action($modlogdata, $lang->custom_tool);
|
Zeile 1732 | Zeile 1742 |
---|
$options = array( 'order_by' => 'dateline', 'order_dir' => 'asc'
|
$options = array( 'order_by' => 'dateline', 'order_dir' => 'asc'
|
); $query = $db->simple_select("posts", "DISTINCT tid", "pid IN ($pids)", $options);
| ); $query = $db->simple_select("posts", "DISTINCT tid", "pid IN (".implode(',',$pids).")", $options);
|
while($row = $db->fetch_array($query)) { $tids[] = $row['tid'];
| while($row = $db->fetch_array($query)) { $tids[] = $row['tid'];
|