|
From: James A. <th...@us...> - 2001-11-26 09:50:34
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv22679
Modified Files:
profile.php
Log Message:
Fix for bug #484526
Index: profile.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/profile.php,v
retrieving revision 1.143
retrieving revision 1.144
diff -C2 -r1.143 -r1.144
*** profile.php 2001/11/26 01:50:02 1.143
--- profile.php 2001/11/26 09:50:30 1.144
***************
*** 1643,1647 ****
$email = (!empty($HTTP_POST_VARS['email'])) ? trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['email']))) : "";
! $sql = "SELECT user_id, username, user_email
FROM " . USERS_TABLE . "
WHERE user_email = '$email'
--- 1643,1647 ----
$email = (!empty($HTTP_POST_VARS['email'])) ? trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['email']))) : "";
! $sql = "SELECT user_id, username, user_email, user_active
FROM " . USERS_TABLE . "
WHERE user_email = '$email'
***************
*** 1657,1660 ****
--- 1657,1666 ----
$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();
|