Changeset 8043
- Timestamp:
- Dec 8, 2010, 9:51:04 PM (13 years ago)
- Location:
- extensions/Register_FluxBB/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Register_FluxBB/trunk/include/functions.inc.php
r7982 r8043 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 -
extensions/Register_FluxBB/trunk/main.inc.php
r7982 r8043 2 2 /* 3 3 Plugin Name: Register FluxBB 4 Version: 2.3. 54 Version: 2.3.6 5 5 Description: Link user registration from Piwigo to FluxBB forum (registration, password changing, deletion) - Original Nicco's NBC_LinkUser2PunBB plugin upgraded to Piwigo / Liez l'inscription des utilisateurs de Piwigo avec votre forum FluxBB - Portage du plugin NBC_LinkUser2PunBB de Nicco vers Piwigo 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=252 … … 69 69 2.3.5 - 02/12/10 - Bug 2047 fixed : Check case sensitivity for logins in FluxBB's user table 70 70 - Code refactory and optimization 71 72 2.3.6 - 08/12/10 - Bug 2051 fixed : Compatibility with Captcha 71 73 -------------------------------------------------------------------------------- 72 74 */
Note: See TracChangeset
for help on using the changeset viewer.