- made prune a bit nicer

#8236


git-svn-id: file:///svn/phpbb/trunk@7059 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-02-25 06:08:39 +00:00
parent 6f426ddf0f
commit bcecae8993
4 changed files with 21 additions and 2 deletions

View file

@ -41,8 +41,11 @@
<fieldset> <fieldset>
<legend>{L_SELECT_FORUM}</legend> <legend>{L_SELECT_FORUM}</legend>
<p>{L_LOOK_UP_FORUMS_EXPLAIN}</p>
<dl> <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" />&nbsp; {L_ALL_FORUMS}</dd>
</dl> </dl>
<p class="quick"> <p class="quick">

View file

@ -46,9 +46,25 @@ class acp_prune
global $db, $user, $auth, $template, $cache; global $db, $user, $auth, $template, $cache;
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx; global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
$all_forums = request_var('all_forums', 0);
$forum_id = request_var('f', array(0)); $forum_id = request_var('f', array(0));
$submit = (isset($_POST['submit'])) ? true : false; $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) if ($submit)
{ {
$prune_posted = request_var('prune_days', 0); $prune_posted = request_var('prune_days', 0);

View file

@ -232,6 +232,7 @@ $lang = array_merge($lang, array(
'LOGIN_ADMIN_CONFIRM' => 'To administer the board you must re-authenticate yourself.', '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', '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_FORUM' => 'Select a forum',
'LOOK_UP_FORUMS_EXPLAIN'=> 'You are able to select more than one forum',
'MANAGE' => 'Manage', 'MANAGE' => 'Manage',
'MOVE_DOWN' => 'Move down', 'MOVE_DOWN' => 'Move down',

View file

@ -118,7 +118,6 @@ $lang = array_merge($lang, array(
'GROUPS_NOT_ASSIGNED' => 'No group assigned to this role', '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_GROUP' => 'Look up usergroup',
'LOOK_UP_USER' => 'Look up user', 'LOOK_UP_USER' => 'Look up user',