Changeset 6784 for extensions/NBC_UserAdvManager
- Timestamp:
- Aug 21, 2010, 6:31:47 PM (14 years ago)
- Location:
- extensions/NBC_UserAdvManager/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php
r6775 r6784 370 370 while($row = pwg_db_fetch_assoc($result)) 371 371 { 372 $msg_error1 .= (($msg_error1 <> '') ? '<br />' : '') . l10n('Err_audit_no_casse').stripslashes($row['username']);372 $msg_error1 .= (($msg_error1 <> '') ? '<br>' : '') . l10n('Err_audit_no_casse').stripslashes($row['username']); 373 373 } 374 374 } … … 389 389 { 390 390 if (!ValidateUsername(stripslashes($row['username']))) 391 $msg_error2 .= (($msg_error2 <> '') ? '<br />' : '') . l10n('Err_audit_username_char').stripslashes($row['username']);391 $msg_error2 .= (($msg_error2 <> '') ? '<br>' : '') . l10n('Err_audit_username_char').stripslashes($row['username']); 392 392 } 393 393 } … … 413 413 if (preg_match($pattern, $row['mail_address'])) 414 414 { 415 $msg_error3 .= (($msg_error3 <> '') ? '<br />' : '') . l10n('Err_audit_email_forbidden').stripslashes($row['username']).' ('.$row['mail_address'].')';415 $msg_error3 .= (($msg_error3 <> '') ? '<br>' : '') . l10n('Err_audit_email_forbidden').stripslashes($row['username']).' ('.$row['mail_address'].')'; 416 416 } 417 417 } … … 420 420 421 421 if ($msg_error1 <> '') 422 $errors[] = $msg_error1.'<br /><br/>';422 $errors[] = $msg_error1.'<br><br>'; 423 423 424 424 if ($msg_error2 <> '') 425 $errors[] = $msg_error2.'<br /><br/>';425 $errors[] = $msg_error2.'<br><br>'; 426 426 427 427 if ($msg_error3 <> '') 428 $errors[] = $msg_error3.'<br /><br/>';428 $errors[] = $msg_error3.'<br><br>'; 429 429 430 430 if ($msg_error1 <> '' or $msg_error2 <> '' or $msg_error3 <> '') -
extensions/NBC_UserAdvManager/trunk/changelog.txt.php
r6783 r6784 186 186 Bug 1795 fixed - Fixes rules using email information and/or email of validation 187 187 188 -- 2.15.5 : Bug 1807 fixed - Textareas are resized according the screen resolution 188 -- 2.15.5 : Bug 1727 fixed - The redirection does not appli to admins, webmaster and generic users. 189 Bug 1807 fixed - Textareas are resized according the screen resolution 189 190 Bug 1808 fixed - The Tracking users table is ordered by default on "LastVisit" field (last in at top) 190 191 Bug 1809 fixed - Addition of a direct link to user's profile in all UAM tables. The link gives a new window -
extensions/NBC_UserAdvManager/trunk/main.inc.php
r6783 r6784 397 397 398 398 // RedirectToProfile - Thx to LucMorizur 399 // redirects a visitor ( not generic (forbidden) neither admin) to his399 // redirects a visitor (except for admins, webmasters and generic statuses) to his 400 400 // profile.php page 401 401 // … … 408 408 409 409 $conf_UAM = unserialize($conf['UserAdvManager']); 410 411 if ((isset($conf_UAM[21]) and $conf_UAM[21] == 'true')) 412 { 413 $user_idsOK = array(); 414 if (!check_consult($user['id'], $user_idsOK)) 415 redirect(PHPWG_ROOT_PATH.'profile.php'); 410 411 $query =' 412 SELECT user_id, status 413 FROM '.USER_INFOS_TABLE.' 414 WHERE user_id = '.$user['id'].' 415 ;'; 416 $data = pwg_db_fetch_assoc(pwg_query($query)); 417 418 if ($data['status'] <> "admin" and $data['status'] <> "webmaster" and $data['status'] <> "generic") 419 { 420 if ((isset($conf_UAM[21]) and $conf_UAM[21] == 'true')) 421 { 422 $user_idsOK = array(); 423 if (!check_consult($user['id'], $user_idsOK)) 424 redirect(PHPWG_ROOT_PATH.'profile.php'); 425 } 416 426 } 417 427 }
Note: See TracChangeset
for help on using the changeset viewer.