forked from GithubBackups/tinyib
Add UI
This commit is contained in:
parent
f89556e482
commit
643373ec7e
25
inc/html.php
25
inc/html.php
@ -1175,6 +1175,7 @@ EOF;
|
|||||||
function manageModerateAll($post_ids, $threads, $replies, $ips) {
|
function manageModerateAll($post_ids, $threads, $replies, $ips) {
|
||||||
global $isadmin;
|
global $isadmin;
|
||||||
$txt_moderate = sprintf(__('Moderate %d posts'), count($post_ids));
|
$txt_moderate = sprintf(__('Moderate %d posts'), count($post_ids));
|
||||||
|
$txt_delete_and_ban_all = __('Delete and ban all');
|
||||||
$txt_delete_all = __('Delete all');
|
$txt_delete_all = __('Delete all');
|
||||||
$txt_ban_all = __('Ban all');
|
$txt_ban_all = __('Ban all');
|
||||||
if ($threads == 1 && $replies == 1) {
|
if ($threads == 1 && $replies == 1) {
|
||||||
@ -1210,6 +1211,18 @@ function manageModerateAll($post_ids, $threads, $replies, $ips) {
|
|||||||
|
|
||||||
</td><td valign="top">
|
</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> </td></tr>
|
||||||
|
<tr><td>
|
||||||
|
|
||||||
|
</td><td valign="top">
|
||||||
|
|
||||||
<form method="get" action="?">
|
<form method="get" action="?">
|
||||||
<input type="hidden" name="manage" value="">
|
<input type="hidden" name="manage" value="">
|
||||||
<input type="hidden" name="delete" value="{$post_ids_quoted}">
|
<input type="hidden" name="delete" value="{$post_ids_quoted}">
|
||||||
@ -1302,6 +1315,7 @@ EOF;
|
|||||||
|
|
||||||
$txt_moderating = sprintf(__('Moderating No.%d'), $post['id']);
|
$txt_moderating = sprintf(__('Moderating No.%d'), $post['id']);
|
||||||
$txt_action = __('Action');
|
$txt_action = __('Action');
|
||||||
|
$txt_delete_and_ban = __('Delete and ban');
|
||||||
if ($post['parent'] == TINYIB_NEWTHREAD) {
|
if ($post['parent'] == TINYIB_NEWTHREAD) {
|
||||||
$txt_delete = __('Delete thread');
|
$txt_delete = __('Delete thread');
|
||||||
} else {
|
} else {
|
||||||
@ -1326,6 +1340,7 @@ EOF;
|
|||||||
</td><td><small>$report_info</small></td></tr>
|
</td><td><small>$report_info</small></td></tr>
|
||||||
EOF;
|
EOF;
|
||||||
}
|
}
|
||||||
|
$ip = htmlentities($post['ip'], ENT_QUOTES);
|
||||||
return <<<EOF
|
return <<<EOF
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>$txt_moderating</legend>
|
<legend>$txt_moderating</legend>
|
||||||
@ -1346,6 +1361,16 @@ EOF;
|
|||||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||||
<tr><td>
|
<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> </td></tr>
|
||||||
|
<tr><td>
|
||||||
|
|
||||||
<form method="get" action="?">
|
<form method="get" action="?">
|
||||||
<input type="hidden" name="manage" value="">
|
<input type="hidden" name="manage" value="">
|
||||||
<input type="hidden" name="delete" value="${post['id']}">
|
<input type="hidden" name="delete" value="${post['id']}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user