Ignore:
Timestamp:
12/08/10 21:52:19 (9 years ago)
Author:
Eric
Message:

merge from trunk to branch 2.3

Location:
extensions/Register_FluxBB/branches/2.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Register_FluxBB/branches/2.3/include/functions.inc.php

    r7983 r8044  
    133133 
    134134 
    135 function Register_FluxBB_RegistrationCheck($err, $register_user) 
    136 { 
    137   global $errors, $conf; 
     135function Register_FluxBB_RegistrationCheck($errors, $user) 
     136{ 
     137  global $conf; 
    138138   
    139139  //Because FluxBB is case insensitive on login name, we have to check if a similar login already exists in FluxBB's user table 
     
    142142SELECT username 
    143143  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     } 
     144WHERE 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;  
    153154} 
    154155 
  • extensions/Register_FluxBB/branches/2.3/main.inc.php

    r7983 r8044  
    22/* 
    33Plugin Name: Register FluxBB 
    4 Version: 2.3.5 
     4Version: 2.3.6 
    55Description: 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 
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=252 
     
    69692.3.5     - 02/12/10  - Bug 2047 fixed : Check case sensitivity for logins in FluxBB's user table 
    7070                      - Code refactory and optimization 
     71 
     722.3.6     - 08/12/10  - Bug 2051 fixed : Compatibility with Captcha 
    7173-------------------------------------------------------------------------------- 
    7274*/ 
Note: See TracChangeset for help on using the changeset viewer.