diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2006-06-08 20:26:03 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-06-08 20:26:03 +0000 |
| commit | ef08df567522851202b09715c6b4bdef0c386403 (patch) | |
| tree | f48e3798b2983a893c49943ac849be1d8a1ee5c7 /phpBB/includes/acp/acp_users.php | |
| parent | 580a318d1624e76e258c5aa9a151e45f59bc7b91 (diff) | |
| download | forums-ef08df567522851202b09715c6b4bdef0c386403.tar forums-ef08df567522851202b09715c6b4bdef0c386403.tar.gz forums-ef08df567522851202b09715c6b4bdef0c386403.tar.bz2 forums-ef08df567522851202b09715c6b4bdef0c386403.tar.xz forums-ef08df567522851202b09715c6b4bdef0c386403.zip | |
- bugfix roll
- fixed sql_query_limit on mssql/mssql_odbc
git-svn-id: file:///svn/phpbb/trunk@6024 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
| -rw-r--r-- | phpBB/includes/acp/acp_users.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php index ea8e20a210..fba21b3cb9 100644 --- a/phpBB/includes/acp/acp_users.php +++ b/phpBB/includes/acp/acp_users.php @@ -288,6 +288,30 @@ class acp_users add_log('user', $user_id, $log . '_USER'); + if ($user_row['user_type'] == USER_INACTIVE) + { + set_config('num_users', $config['num_users'] + 1, true); + } + else + { + set_config('num_users', $config['num_users'] - 1, true); + } + + // Get latest username + $sql = 'SELECT user_id, username + FROM ' . USERS_TABLE . ' + WHERE user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . ') + ORDER BY user_id DESC'; + $result = $db->sql_query_limit($sql, 1); + $row = $db->sql_fetchrow($result); + $db->sql_freeresult($result); + + if ($row) + { + set_config('newest_user_id', $row['user_id'], true); + set_config('newest_username', $row['username'], true); + } + trigger_error($user->lang[$message] . adm_back_link($this->u_action . '&u=' . $user_id)); break; |
