diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-08-01 14:04:41 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-08-01 14:04:41 +0000 |
commit | aab6df3ce4031f8bb1babd4614a3dc27dd41bf8a (patch) | |
tree | 20895d0490d010abe65e3e5dfaa91a00ad48192c /phpBB/admin | |
parent | 3de829936263737f5d2e6f46e9d55096b34c6507 (diff) | |
download | forums-aab6df3ce4031f8bb1babd4614a3dc27dd41bf8a.tar forums-aab6df3ce4031f8bb1babd4614a3dc27dd41bf8a.tar.gz forums-aab6df3ce4031f8bb1babd4614a3dc27dd41bf8a.tar.bz2 forums-aab6df3ce4031f8bb1babd4614a3dc27dd41bf8a.tar.xz forums-aab6df3ce4031f8bb1babd4614a3dc27dd41bf8a.zip |
Log actions
git-svn-id: file:///svn/phpbb/trunk@2799 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin')
-rw-r--r-- | phpBB/admin/admin_prune_users.php | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/phpBB/admin/admin_prune_users.php b/phpBB/admin/admin_prune_users.php index c2c6f2b9a5..f8769701fd 100644 --- a/phpBB/admin/admin_prune_users.php +++ b/phpBB/admin/admin_prune_users.php @@ -107,8 +107,8 @@ if ( isset($HTTP_POST_VARS['prune']) ) } else { - $username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : ''; - $email = ( !empty($HTTP_POST_VARS['email']) ) ? $HTTP_POST_VARS['email'] : ''; + $username = ( !empty($HTTP_POST_VARS['username']) ) ? urldecode($HTTP_POST_VARS['username']) : ''; + $email = ( !empty($HTTP_POST_VARS['email']) ) ? urldecode($HTTP_POST_VARS['email']) : ''; $joined_select = ( !empty($HTTP_POST_VARS['joined_select']) ) ? $HTTP_POST_VARS['joined_select'] : 'lt'; $active_select = ( !empty($HTTP_POST_VARS['active_select']) ) ? $HTTP_POST_VARS['active_select'] :'lt'; @@ -157,12 +157,16 @@ if ( isset($HTTP_POST_VARS['prune']) ) { if ( !empty($HTTP_POST_VARS['deleteposts']) ) { + $l_admin_log = $lang['log_prune_user_del_del']; + // // Call unified post deletion routine? // } else { + $l_admin_log = $lang['log_prune_user_del_anon']; + for($i = 0; $i < sizeof($user_ids); $i++) { $sql = "UPDATE " . POSTS_TABLE . " @@ -172,19 +176,23 @@ if ( isset($HTTP_POST_VARS['prune']) ) } } - unset($user_ids); - unset($usernames); - $sql = "DELETE FROM " . USERS_TABLE; } else if ( !empty($HTTP_POST_VARS['deactivate']) ) { + $l_admin_log = $lang['log_prune_user_deac']; + $sql = "UPDATE " . USERS_TABLE . " SET user_active = 0"; } $sql .= " WHERE user_id <> " . ANONYMOUS . " $where_sql"; // $db->sql_query($sql); - } + + add_admin_log($l_admin_log, implode(', ', $usernames)); + + unset($user_ids); + unset($usernames); + } message_die(MESSAGE, $lang['Success_user_prune']); } |