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

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

'; if (!empty($context['reports']) && !$context['view_closed'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) echo ' '; echo '
'; 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'], '
'; // Reported post options template_quickbuttons($report['quickbuttons'], 'reported_posts'); echo '
'; } // Were none found? if (empty($context['reports'])) echo '

', $txt['mc_reportedp_none_found'], '

'; echo '
'; if (!empty($context['reports']) && !$context['view_closed'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) echo '
'; echo '
'; } /** * A block to show the current top reported posts. */ function template_reported_posts_block() { global $context, $txt, $scripturl; echo '

', $txt['mc_recent_reports'], '

'; } /** * Handles viewing details of and managing a specific report */ 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']), ' '; $report_buttons = array( 'ignore' => array( 'text' => !$context['report']['ignore'] ? 'mc_reportedp_ignore' : 'mc_reportedp_unignore', 'url' => $scripturl.'?action=moderate;area=reportedposts;sa=handle;ignore='.(int) !$context['report']['ignore'].';rid='.$context['report']['id'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-ignore_token_var'].'='.$context['mod-report-ignore_token'], 'class' => !$context['report']['ignore'] ? ' you_sure' : '', 'custom' => !$context['report']['ignore'] ? ' data-confirm="' . $txt['mc_reportedp_ignore_confirm'] . '"' : '', 'icon' => 'ignore' ), 'close' => array( 'text' => $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'url' => $scripturl.'?action=moderate;area=reportedposts;sa=handle;closed='.(int) !$context['report']['closed'].';rid='.$context['report']['id'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-closed_token_var'].'='.$context['mod-report-closed_token'], 'icon' => 'close' ) ); // Report buttons template_button_strip($report_buttons, 'right'); echo '

', $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 '
'; } /** * Template for editing a mod comment. */ function template_edit_comment() { global $context, $scripturl, $txt; echo '

', $txt['mc_modreport_edit_mod_comment'], '


'; } /** * 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'], '

'; } /** * Lists all reported members */ function template_reported_members() { global $context, $txt, $scripturl, $options; // 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'], '

'; if (!empty($context['reports']) && !$context['view_closed'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) echo ' '; echo '
'; 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), '

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

', $txt['mc_reportedp_none_found'], '

'; echo '
', (!$context['view_closed'] && !empty($context['reports'])) ? '' : '', '
'; } /** * Template for viewing and managing a specific report about a user's profile */ 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']), ' '; $report_buttons = array( 'ignore' => array( 'text' => !$context['report']['ignore'] ? 'mc_reportedp_ignore' : 'mc_reportedp_unignore', 'url' => $scripturl.'?action=moderate;area=reportedmembers;sa=handle;ignore='.(int)!$context['report']['ignore'].';rid='.$context['report']['id'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-ignore_token_var'].'='.$context['mod-report-ignore_token'], 'class' => !$context['report']['ignore'] ? ' you_sure' : '', 'custom' => !$context['report']['ignore'] ? ' data-confirm="' . $txt['mc_reportedp_ignore_confirm'] . '"' : '', 'icon' => 'ignore' ), 'close' => array( 'text' => $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'url' => $scripturl.'?action=moderate;area=reportedmembers;sa=handle;closed='.(int)!$context['report']['closed'].';rid='.$context['report']['id'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-closed_token_var'].'='.$context['mod-report-closed_token'], 'icon' => 'close' ) ); // Report buttons template_button_strip($report_buttons, 'right'); echo '


', $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 '
'; } ?>