- Timestamp:
- Dec 8, 2010, 9:52:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Register_FluxBB/branches/2.3/include/functions.inc.php
r7983 r8044 133 133 134 134 135 function Register_FluxBB_RegistrationCheck($err , $register_user)136 { 137 global $ errors, $conf;135 function Register_FluxBB_RegistrationCheck($errors, $user) 136 { 137 global $conf; 138 138 139 139 //Because FluxBB is case insensitive on login name, we have to check if a similar login already exists in FluxBB's user table … … 142 142 SELECT username 143 143 FROM ".FluxBB_USERS_TABLE." 144 WHERE LOWER(".stripslashes('username').") = '".strtolower($register_user['username'])."' 145 ;"; 146 147 $count = pwg_db_num_rows(pwg_query($query)); 148 149 if ($count > 0) 150 { 151 return l10n('this login is already used'); 152 } 144 WHERE LOWER(".stripslashes('username').") = '".strtolower($user['username'])."' 145 ;"; 146 147 $count = pwg_db_num_rows(pwg_query($query)); 148 149 if ($count > 0) 150 { 151 array_push($errors, l10n('this login is already used')); 152 } 153 return $errors; 153 154 } 154 155
Note: See TracChangeset
for help on using the changeset viewer.