mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
add quicktool to remove users from the newly registered special group.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9646 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -650,6 +650,28 @@ class acp_users
|
||||
trigger_error($user->lang['USER_POSTS_MOVED'] . adm_back_link($this->u_action . '&u=' . $user_id));
|
||||
|
||||
break;
|
||||
|
||||
case 'leave_nr':
|
||||
|
||||
if (confirm_box(true))
|
||||
{
|
||||
remove_newly_registered($user_id, $user_row);
|
||||
|
||||
add_log('admin', 'LOG_USER_REMOVED_NR', $user_row['username']);
|
||||
trigger_error($user->lang['USER_LIFTED_NR'] . adm_back_link($this->u_action . '&u=' . $user_id));
|
||||
}
|
||||
else
|
||||
{
|
||||
confirm_box(false, $user->lang['CONFIRM_OPERATION'], build_hidden_fields(array(
|
||||
'u' => $user_id,
|
||||
'i' => $id,
|
||||
'mode' => $mode,
|
||||
'action' => $action,
|
||||
'update' => true))
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
// Handle registration info updates
|
||||
@@ -821,6 +843,10 @@ class acp_users
|
||||
if ($user_id == $user->data['user_id'])
|
||||
{
|
||||
$quick_tool_ary = array('delsig' => 'DEL_SIG', 'delavatar' => 'DEL_AVATAR', 'moveposts' => 'MOVE_POSTS', 'delposts' => 'DEL_POSTS', 'delattach' => 'DEL_ATTACH');
|
||||
if ($user_row['user_new'])
|
||||
{
|
||||
$quick_tool_ary['leave_nr'] = 'LEAVE_NR';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -842,6 +868,10 @@ class acp_users
|
||||
{
|
||||
$quick_tool_ary['reactivate'] = 'FORCE';
|
||||
}
|
||||
if ($user_row['user_new'])
|
||||
{
|
||||
$quick_tool_ary['leave_nr'] = 'LEAVE_NR';
|
||||
}
|
||||
}
|
||||
|
||||
$s_action_options = '<option class="sep" value="">' . $user->lang['SELECT_OPTION'] . '</option>';
|
||||
|
Reference in New Issue
Block a user