Compare commits

...

2 Commits

Author SHA1 Message Date
Trevor Slocum edb5526d14 UI 2 5 months ago
Trevor Slocum 643373ec7e Add UI 5 months ago
  1. 25
      inc/html.php

25
inc/html.php

@ -1175,6 +1175,7 @@ EOF;
function manageModerateAll($post_ids, $threads, $replies, $ips) {
global $isadmin;
$txt_moderate = sprintf(__('Moderate %d posts'), count($post_ids));
$txt_delete_and_ban_all = __('Delete and ban all');
$txt_delete_all = __('Delete all');
$txt_ban_all = __('Ban all');
if ($threads == 1 && $replies == 1) {
@ -1228,6 +1229,18 @@ function manageModerateAll($post_ids, $threads, $replies, $ips) {
</form>
</td><td><small>$ban_info</small></td></tr>
<tr><td>
&nbsp;
</td><td valign="top">
<form method="get" action="?">
<input type="hidden" name="manage" value="">
<input type="hidden" name="bans" value="{$ips_comma}">
<input type="hidden" name="deleteposts" value="{$post_ids_quoted}">
<input type="submit" value="$txt_delete_and_ban_all" class="managebutton">
</form>
</td><td>&nbsp;</td></tr>
</table>
</fieldset>
@ -1302,6 +1315,7 @@ EOF;
$txt_moderating = sprintf(__('Moderating No.%d'), $post['id']);
$txt_action = __('Action');
$txt_delete_and_ban = __('Delete and ban');
if ($post['parent'] == TINYIB_NEWTHREAD) {
$txt_delete = __('Delete thread');
} else {
@ -1326,6 +1340,7 @@ EOF;
</td><td><small>$report_info</small></td></tr>
EOF;
}
$ip = htmlentities($post['ip'], ENT_QUOTES);
return <<<EOF
<fieldset>
<legend>$txt_moderating</legend>
@ -1362,6 +1377,16 @@ EOF;
</form>
</td><td><small>$ban_info</small></td></tr>
<tr><td>
<form method="get" action="?">
<input type="hidden" name="manage" value="">
<input type="hidden" name="bans" value="$ip">
<input type="hidden" name="deleteposts" value="${post['id']}">
<input type="submit" value="$txt_delete_and_ban" class="managebutton">
</form>
</td><td>&nbsp;</td></tr>
$sticky_html

Loading…
Cancel
Save