Changeset 6801 for extensions/NBC_UserAdvManager
- Timestamp:
- Aug 25, 2010, 9:44:37 PM (14 years ago)
- Location:
- extensions/NBC_UserAdvManager/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php
r6784 r6801 352 352 $msg_error1 = ''; 353 353 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." p1360 WHERE EXISTS(361 SELECT ".$conf['user_fields']['username']."362 FROM ".USERS_TABLE." p2363 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 378 354 /* Username without forbidden keys */ 379 355 if ( isset($conf_UAM[6]) and $conf_UAM[6] == 'true' ) … … 389 365 { 390 366 if (!ValidateUsername(stripslashes($row['username']))) 391 $msg_error 2 .= (($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']); 392 368 } 393 369 } 394 370 395 $msg_error 3= '';371 $msg_error2 = ''; 396 372 397 373 /* Email without forbidden domain */ … … 413 389 if (preg_match($pattern, $row['mail_address'])) 414 390 { 415 $msg_error 3 .= (($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'].')'; 416 392 } 417 393 } … … 425 401 $errors[] = $msg_error2.'<br><br>'; 426 402 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 <> '') 431 404 array_push($page['errors'], l10n('Err_audit_advise')); 432 405 else -
extensions/NBC_UserAdvManager/trunk/changelog.txt.php
r6796 r6801 194 194 195 195 -- 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) 196 197 */ 197 198 ?>
Note: See TracChangeset
for help on using the changeset viewer.