|
@@ -190,6 +190,15 @@ function template_reported_posts()
|
|
|
{
|
|
|
global $settings, $options, $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 '
|
|
|
+ <div class="infobox">
|
|
|
+ ', $txt['report_action_'. $context['report_post_action']], '
|
|
|
+ </div>';
|
|
|
+ }
|
|
|
+
|
|
|
echo '
|
|
|
<form id="reported_posts" action="', $scripturl, '?action=moderate;area=reports', $context['view_closed'] ? ';sa=closed' : '', ';start=', $context['start'], '" method="post" accept-charset="', $context['character_set'], '">
|
|
|
<div class="cat_bar">
|
|
@@ -239,7 +248,7 @@ function template_reported_posts()
|
|
|
// Delete message button.
|
|
|
if (!$report['closed'] && (is_array($context['report_remove_any_boards']) && in_array($report['topic']['id_board'], $context['report_remove_any_boards'])))
|
|
|
echo '
|
|
|
- <li><a href="', $scripturl, '?action=deletemsg;topic=', $report['topic']['id'] ,'.0;msg=', $report['topic']['id_msg'] ,';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'' , $txt['mc_reportedp_delete_confirm'] , '\');">', $delete_button, '</a></li>';
|
|
|
+ <li><a href="', $scripturl, '?action=deletemsg;topic=', $report['topic']['id'] ,'.0;msg=', $report['topic']['id_msg'] ,';modcenter;', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'' , $txt['mc_reportedp_delete_confirm'] , '\');">', $delete_button, '</a></li>';
|
|
|
|
|
|
// Ban this user button.
|
|
|
if (!$report['closed'] && !empty($context['report_manage_bans']))
|