Ignore:
Timestamp:
Aug 25, 2010, 9:44:37 PM (14 years ago)
Author:
Eric
Message:

Bug 1821 fixed - Cleanup of old deprecated functions slags (Case sensitivity on logins)

Location:
extensions/NBC_UserAdvManager/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php

    r6784 r6801  
    352352                $msg_error1 = '';
    353353               
    354 /* username insensible a la casse */
    355     if (isset($conf_UAM[2]) and $conf_UAM[2] == 'true')
    356           {
    357                         $query = "
    358 SELECT ".$conf['user_fields']['username']."
    359   FROM ".USERS_TABLE." p1
    360 WHERE EXISTS(
    361   SELECT ".$conf['user_fields']['username']."
    362          FROM ".USERS_TABLE." p2
    363         WHERE p1.".$conf['user_fields']['id']." <> p2.".$conf['user_fields']['id']."
    364          AND LOWER(p1.".$conf['user_fields']['username'].") = LOWER(p2.".$conf['user_fields']['username'].")
    365         )
    366 ;";
    367                          
    368                   $result = pwg_query($query);
    369                        
    370                   while($row = pwg_db_fetch_assoc($result))
    371                 {
    372                                 $msg_error1 .= (($msg_error1 <> '') ? '<br>' : '') . l10n('Err_audit_no_casse').stripslashes($row['username']);
    373                         }
    374                 }
    375 
    376                 $msg_error2 = '';
    377                
    378354/* Username without forbidden keys */
    379355    if ( isset($conf_UAM[6]) and $conf_UAM[6] == 'true' )
     
    389365                        {
    390366                                if (!ValidateUsername(stripslashes($row['username'])))
    391                                         $msg_error2 .= (($msg_error2 <> '') ? '<br>' : '') . l10n('Err_audit_username_char').stripslashes($row['username']);
     367                                        $msg_error1 .= (($msg_error1 <> '') ? '<br>' : '') . l10n('Err_audit_username_char').stripslashes($row['username']);
    392368                        }
    393369                }
    394370
    395                 $msg_error3 = '';
     371                $msg_error2 = '';
    396372               
    397373/* Email without forbidden domain */
     
    413389                                  if (preg_match($pattern, $row['mail_address']))
    414390                                  {
    415                                                 $msg_error3 .=  (($msg_error3 <> '') ? '<br>' : '') . l10n('Err_audit_email_forbidden').stripslashes($row['username']).' ('.$row['mail_address'].')';
     391                                                $msg_error2 .=  (($msg_error2 <> '') ? '<br>' : '') . l10n('Err_audit_email_forbidden').stripslashes($row['username']).' ('.$row['mail_address'].')';
    416392                                        }
    417393                                }
     
    425401                        $errors[] = $msg_error2.'<br><br>';
    426402               
    427                 if ($msg_error3 <> '')
    428                 $errors[] = $msg_error3.'<br><br>';
    429                
    430                 if ($msg_error1 <> '' or $msg_error2 <> '' or $msg_error3 <> '')
     403                if ($msg_error1 <> '' or $msg_error2 <> '')
    431404                array_push($page['errors'], l10n('Err_audit_advise'));
    432405                else
  • extensions/NBC_UserAdvManager/trunk/changelog.txt.php

    r6796 r6801  
    194194
    195195-- 2.15.6 : Bug 1819 fixed - Wrong help text on redirection function
     196            Bug 1821 fixed - Cleanup of old deprecated functions slags (Case sensitivity on logins)
    196197*/
    197198?>
Note: See TracChangeset for help on using the changeset viewer.