', $txt['report_action_'. $context['report_post_action']], ' '; } echo '

', $context['view_closed'] ? $txt['mc_reportedp_closed'] : $txt['mc_reportedp_active'], '

'; // Make the buttons. $close_button = create_button('close.png', $context['view_closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', $context['view_closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'class="centericon"'); $details_button = create_button('details.png', 'mc_reportedp_details', 'mc_reportedp_details', 'class="centericon"'); $ignore_button = create_button('ignore.png', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'class="centericon"'); $unignore_button = create_button('ignore.png', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'class="centericon"'); $ban_button = create_button('close.png', 'mc_reportedp_ban', 'mc_reportedp_ban', 'class="centericon"'); $delete_button = create_button('delete.png', 'mc_reportedp_delete', 'mc_reportedp_delete', 'class="centericon"'); foreach ($context['reports'] as $report) { echo '
', !empty($report['topic']['board_name']) ? '' . $report['topic']['board_name'] . '' : '??', ' / ', $report['subject'], ' ', $txt['mc_reportedp_by'], ' ', $report['author']['link'], '
', $txt['mc_reportedp_last_reported'], ': ', $report['last_updated'], ' - '; // Prepare the comments... $comments = array(); foreach ($report['comments'] as $comment) $comments[$comment['member']['id']] = $comment['member']['link']; echo ' ', $txt['mc_reportedp_reported_by'], ': ', implode(', ', $comments), '

', $report['body'], '
'; } // Were none found? if (empty($context['reports'])) echo '

', $txt['mc_reportedp_none_found'], '

'; echo '
', !empty($context['total_reports']) && $context['total_reports'] >= $context['reports_how_many'] ? '' : '' ,'
', !$context['view_closed'] ? ' ' : '', '
'; } // A block to show the current top reported posts. function template_reported_posts_block() { global $context, $txt, $scripturl; echo '

', $txt['mc_recent_reports'], '

'; } function template_viewmodreport() { global $context, $scripturl, $txt; // Let them know the action was a success. if (!empty($context['report_post_action'])) { echo '
', $txt['report_action_'. $context['report_post_action']], '
'; } echo '

', sprintf($txt['mc_viewmodreport'], $context['report']['message_link'], $context['report']['author']['link']), '

', sprintf($txt['mc_modreport_summary'], $context['report']['num_reports'], $context['report']['last_updated']), ' '; // Make the buttons. $close_button = create_button('close.png', $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'class="centericon"'); $ignore_button = create_button('ignore.png', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'class="centericon"'); $unignore_button = create_button('ignore.png', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'class="centericon"'); echo ' ', $context['report']['ignore'] ? $unignore_button : $ignore_button, ' ', $close_button, '

', $context['report']['body'], '

', $txt['mc_modreport_whoreported_title'], '

'; foreach ($context['report']['comments'] as $comment) echo '

', sprintf($txt['mc_modreport_whoreported_data'], $comment['member']['link'] . (empty($comment['member']['id']) && !empty($comment['member']['ip']) ? ' (' . $comment['member']['ip'] . ')' : ''), $comment['time']), '

', $comment['message'], '

'; echo '

', $txt['mc_modreport_mod_comments'], '

'; if (empty($context['report']['mod_comments'])) echo '

', $txt['mc_modreport_no_mod_comment'], '

'; foreach ($context['report']['mod_comments'] as $comment) { echo '

', $comment['member']['link'], ': (', $comment['time'], ')', ($comment['can_edit'] ? ''. $txt['mc_reportedp_comment_edit'] .' | '. $txt['mc_reportedp_comment_delete'] .'' : '') ,'

'; echo '

', $comment['message'], '

'; } echo '

', $txt['mc_reportedp_new_comment'], '


'; template_show_list('moderation_actions_list'); echo '
'; } function template_edit_comment() { global $context, $scripturl, $txt; echo '
'; echo '

', $txt['mc_modreport_edit_mod_comment'] ,'

'; echo '

'; echo '
'; } // A block to show the current top reported member profiles. function template_reported_members_block() { global $context, $txt, $scripturl; echo '

', $txt['mc_recent_member_reports'], '

'; } function template_reported_members() { global $context, $txt, $scripturl; // Let them know the action was a success. if (!empty($context['report_post_action']) && !empty($txt['report_action_'. $context['report_post_action']])) { echo '
', $txt['report_action_'. $context['report_post_action']], '
'; } echo '

', $context['view_closed'] ? $txt['mc_reportedp_closed'] : $txt['mc_reportedp_active'], '

'; // Make the buttons. $close_button = create_button('close.png', $context['view_closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', $context['view_closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'class="centericon"'); $details_button = create_button('details.png', 'mc_reportedp_details', 'mc_reportedp_details', 'class="centericon"'); $ignore_button = create_button('ignore.png', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'class="centericon"'); $unignore_button = create_button('ignore.png', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'class="centericon"'); $ban_button = create_button('close.png', 'mc_reportedp_ban', 'mc_reportedp_ban', 'class="centericon"'); foreach ($context['reports'] as $report) { echo '
', $report['user']['name'], '
', $txt['mc_reportedp_last_reported'], ': ', $report['last_updated'], ' - '; // Prepare the comments... $comments = array(); foreach ($report['comments'] as $comment) $comments[$comment['member']['id']] = $comment['member']['link']; echo ' ', $txt['mc_reportedp_reported_by'], ': ', implode(', ', $comments), '

'; } // Were none found? if (empty($context['reports'])) echo '

', $txt['mc_reportedp_none_found'], '

'; echo '
', !$context['view_closed'] ? '' : '', '
'; } function template_viewmemberreport() { global $context, $scripturl, $txt; // Let them know the action was a success. if (!empty($context['report_post_action'])) { echo '
', $txt['report_action_'. $context['report_post_action']], '
'; } echo '

', sprintf($txt['mc_viewmemberreport'], $context['report']['user']['link']), '

', sprintf($txt['mc_memberreport_summary'], $context['report']['num_reports'], $context['report']['last_updated']), ' '; // Make the buttons. $close_button = create_button('close.png', $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'class="centericon"'); $ignore_button = create_button('ignore.png', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'class="centericon"'); $unignore_button = create_button('ignore.png', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'class="centericon"'); echo ' ', $context['report']['ignore'] ? $unignore_button : $ignore_button, ' ', $close_button, '


', $txt['mc_memberreport_whoreported_title'], '

'; foreach ($context['report']['comments'] as $comment) echo '

', sprintf($txt['mc_modreport_whoreported_data'], $comment['member']['link'] . (empty($comment['member']['id']) && !empty($comment['member']['ip']) ? ' (' . $comment['member']['ip'] . ')' : ''), $comment['time']), '

', $comment['message'], '

'; echo '

', $txt['mc_modreport_mod_comments'], '

'; if (empty($context['report']['mod_comments'])) echo '

', $txt['mc_modreport_no_mod_comment'], '

'; foreach ($context['report']['mod_comments'] as $comment) { echo '

', $comment['member']['link'], ': (', $comment['time'], ')', ($comment['can_edit'] ? ''. $txt['mc_reportedp_comment_edit'] .' | '. $txt['mc_reportedp_comment_delete'] .'' : '') ,'

'; echo '

', $comment['message'], '

'; } echo '

', $txt['mc_reportedp_new_comment'], '


'; template_show_list('moderation_actions_list'); echo '
'; } ?>