diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2005-08-19 10:52:06 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-08-19 10:52:06 +0000 |
commit | bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea (patch) | |
tree | 6b20e2e88f27d537f9654a7afc25400ffc116f18 /phpBB/adm/index.php | |
parent | f71d1a2a00d1050964b1c324aee146e70ae2fcd2 (diff) | |
download | forums-bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea.tar forums-bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea.tar.gz forums-bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea.tar.bz2 forums-bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea.tar.xz forums-bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea.zip |
- only bugfixes
- use usergroup function to activate users at admin index
git-svn-id: file:///svn/phpbb/trunk@5200 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/index.php')
-rw-r--r-- | phpBB/adm/index.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php index ff488b4e65..050a698256 100644 --- a/phpBB/adm/index.php +++ b/phpBB/adm/index.php @@ -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': |