mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
- made prune a bit nicer
#8236 git-svn-id: file:///svn/phpbb/trunk@7059 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6f426ddf0f
commit
bcecae8993
4 changed files with 21 additions and 2 deletions
|
@ -41,8 +41,11 @@
|
|||
|
||||
<fieldset>
|
||||
<legend>{L_SELECT_FORUM}</legend>
|
||||
<p>{L_LOOK_UP_FORUMS_EXPLAIN}</p>
|
||||
<dl>
|
||||
<dd class="full"><select name="f[]" multiple="multiple" size="5">{S_FORUM_OPTIONS}</select></dd>
|
||||
<dt><label for="forum">{L_LOOK_UP_FORUM}:</label></dt>
|
||||
<dd><select name="f[]" multiple="multiple" size="5">{S_FORUM_OPTIONS}</select></dd>
|
||||
<dd><input type="checkbox" class="radio" name="all_forums" value="1" /> {L_ALL_FORUMS}</dd>
|
||||
</dl>
|
||||
|
||||
<p class="quick">
|
||||
|
|
|
@ -46,9 +46,25 @@ class acp_prune
|
|||
global $db, $user, $auth, $template, $cache;
|
||||
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
|
||||
|
||||
$all_forums = request_var('all_forums', 0);
|
||||
$forum_id = request_var('f', array(0));
|
||||
$submit = (isset($_POST['submit'])) ? true : false;
|
||||
|
||||
if ($all_forums)
|
||||
{
|
||||
$sql = 'SELECT forum_id
|
||||
FROM ' . FORUMS_TABLE . '
|
||||
ORDER BY left_id';
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$forum_id = array();
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$forum_id[] = $row['forum_id'];
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
if ($submit)
|
||||
{
|
||||
$prune_posted = request_var('prune_days', 0);
|
||||
|
|
|
@ -232,6 +232,7 @@ $lang = array_merge($lang, array(
|
|||
'LOGIN_ADMIN_CONFIRM' => 'To administer the board you must re-authenticate yourself.',
|
||||
'LOGIN_ADMIN_SUCCESS' => 'You have successfully authenticated and will now be redirected to the Administration Control Panel',
|
||||
'LOOK_UP_FORUM' => 'Select a forum',
|
||||
'LOOK_UP_FORUMS_EXPLAIN'=> 'You are able to select more than one forum',
|
||||
|
||||
'MANAGE' => 'Manage',
|
||||
'MOVE_DOWN' => 'Move down',
|
||||
|
|
|
@ -118,7 +118,6 @@ $lang = array_merge($lang, array(
|
|||
|
||||
'GROUPS_NOT_ASSIGNED' => 'No group assigned to this role',
|
||||
|
||||
'LOOK_UP_FORUMS_EXPLAIN' => 'You are able to select more than one forum',
|
||||
'LOOK_UP_GROUP' => 'Look up usergroup',
|
||||
'LOOK_UP_USER' => 'Look up user',
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue