1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

- only bugfixes

- use usergroup function to activate users at admin index


git-svn-id: file:///svn/phpbb/trunk@5200 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2005-08-19 10:52:06 +00:00
parent f71d1a2a00
commit bcc1eb1c0e
4 changed files with 20 additions and 14 deletions

View File

@@ -156,8 +156,13 @@ elseif ($pane == 'right')
if ($action == 'activate')
{
$sql = 'UPDATE ' . USERS_TABLE . ' SET user_type = ' . USER_NORMAL . " WHERE user_id IN ($mark)";
$db->sql_query($sql);
include($phpbb_root_path . 'includes/functions_user.php');
$mark_ary = explode(', ', $mark);
foreach ($mark_ary as $user_id)
{
user_active_flip($user_id, USER_INACTIVE);
}
}
else if ($action == 'delete')
{
@@ -165,6 +170,8 @@ elseif ($pane == 'right')
$db->sql_query($sql);
$sql = 'DELETE FROM ' . USERS_TABLE . " WHERE user_id IN ($mark)";
$db->sql_query($sql);
add_log('admin', 'LOG_INDEX_' . strtoupper($action), implode(', ', $user_affected));
}
if ($action != 'delete')
@@ -172,7 +179,6 @@ elseif ($pane == 'right')
set_config('num_users', $config['num_users'] + $db->sql_affectedrows(), true);
}
add_log('admin', 'LOG_INDEX_' . strtoupper($action), implode(', ', $user_affected));
break;
case 'remind':