diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-09-23 12:27:51 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-09-23 12:27:51 +0000 |
commit | cbece78f7b180253af95071ab859c468ed061ff5 (patch) | |
tree | 420dcaac9aadf3144a4a65ced3f1bd25be10054e /phpBB/includes/ucp/ucp_register.php | |
parent | 36fa521f9230d2b2a8bbb6dc79185cfc17112f39 (diff) | |
download | forums-cbece78f7b180253af95071ab859c468ed061ff5.tar forums-cbece78f7b180253af95071ab859c468ed061ff5.tar.gz forums-cbece78f7b180253af95071ab859c468ed061ff5.tar.bz2 forums-cbece78f7b180253af95071ab859c468ed061ff5.tar.xz forums-cbece78f7b180253af95071ab859c468ed061ff5.zip |
A reworking of how we handle inactive users
git-svn-id: file:///svn/phpbb/trunk@6394 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_register.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_register.php | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php index 2638ea2ffe..0e0849982e 100644 --- a/phpBB/includes/ucp/ucp_register.php +++ b/phpBB/includes/ucp/ucp_register.php @@ -239,24 +239,30 @@ class ucp_register $key_len = ($key_len < 6) ? 6 : $key_len; $user_actkey = substr($user_actkey, 0, $key_len); $user_type = USER_INACTIVE; + $user_inactive_reason = INACTIVE_REGISTER; + $user_inactive_time = time(); } else { $user_type = USER_NORMAL; $user_actkey = ''; + $user_inactive_reason = 0; + $user_inactive_time = 0; } $user_row = array( - 'username' => $username, - 'user_password' => md5($new_password), - 'user_email' => $email, - 'group_id' => (int) $group_id, - 'user_timezone' => (float) $tz, - 'user_lang' => $lang, - 'user_type' => $user_type, - 'user_actkey' => $user_actkey, - 'user_ip' => $user->ip, - 'user_regdate' => time(), + 'username' => $username, + 'user_password' => md5($new_password), + 'user_email' => $email, + 'group_id' => (int) $group_id, + 'user_timezone' => (float) $tz, + 'user_lang' => $lang, + 'user_type' => $user_type, + 'user_actkey' => $user_actkey, + 'user_ip' => $user->ip, + 'user_regdate' => time(), + 'user_inactive_reason' => $user_inactive_reason, + 'user_inactive_time' => $user_inactive_time, ); // Register user... |