From 31790512b24c68e8c0eb1d26281e899aa828ed51 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Mon, 26 Nov 2001 09:50:31 +0000 Subject: Fix for bug #484526 git-svn-id: file:///svn/phpbb/trunk@1449 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/language/lang_english/lang_main.php | 1 + phpBB/profile.php | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'phpBB') diff --git a/phpBB/language/lang_english/lang_main.php b/phpBB/language/lang_english/lang_main.php index 2ec49b6e28..4206da5a69 100644 --- a/phpBB/language/lang_english/lang_main.php +++ b/phpBB/language/lang_english/lang_main.php @@ -461,6 +461,7 @@ $lang['File_no_data'] = "The file at the URL you gave contains no data"; $lang['No_connection_URL'] = "A connection could not be made to the URL you gave"; $lang['Incomplete_URL'] = "The URL you entered is incomplete"; $lang['Wrong_remote_avatar_format'] = "The URL of the remote avatar is not valid"; +$lang['No_send_account_inactive'] = "Sorry but you're password cannot be retrived because you account is currently inactive. Please contact the forum administrator for more information"; $lang['Always_smile'] = "Always enable Smilies"; $lang['Always_html'] = "Always allow HTML"; diff --git a/phpBB/profile.php b/phpBB/profile.php index 74fbed9296..cfaabeb3c3 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -1642,7 +1642,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) $username = (!empty($HTTP_POST_VARS['username'])) ? trim(strip_tags($HTTP_POST_VARS['username'])) : ""; $email = (!empty($HTTP_POST_VARS['email'])) ? trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['email']))) : ""; - $sql = "SELECT user_id, username, user_email + $sql = "SELECT user_id, username, user_email, user_active FROM " . USERS_TABLE . " WHERE user_email = '$email' AND username = '$username'"; @@ -1656,6 +1656,12 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) $row = $db->sql_fetchrow($result); $username = $row['username']; + + if($row['user_active'] == 0) + { + message_die(GENERAL_MESSAGE, $lang['No_send_account_inactive']); + } + $user_actkey = generate_activation_key(); $user_password = generate_password(); -- cgit v1.2.1