- Timestamp:
- Oct 22, 2013, 1:29:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/branches/2.50/include/functions.inc.php
r24213 r25072 155 155 elseif (is_admin() and isset($conf_UAM['ADMINCONFMAIL']) and $conf_UAM['ADMINCONFMAIL'] == 'false') 156 156 { 157 SetValidated($register_user['id']); 157 158 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false); 158 159 } … … 176 177 elseif (is_admin() and isset($conf_UAM['ADMINCONFMAIL']) and $conf_UAM['ADMINCONFMAIL'] == 'false') 177 178 { 179 SetValidated($register_user['id']); 178 180 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false); 179 181 } … … 446 448 } 447 449 448 // Avoid login into p ublicgalleries until registration confirmation is done450 // Avoid login into private galleries until registration confirmation is done 449 451 if ((isset($conf_UAM['REJECTCONNECT']) and $conf_UAM['REJECTCONNECT'] == 'false') 450 452 or ((isset($conf_UAM['REJECTCONNECT']) and $conf_UAM['REJECTCONNECT'] == 'true') and UAM_UsrReg_Verif($user['id'])) … … 771 773 { 772 774 if (count($collection) > 0) 773 775 { 774 776 // Process if a non-admin nor webmaster user is logged 775 777 // --------------------------------------------------- … … 1621 1623 if (isset($conf_UAM['ADD_GALLERY_URL_TO_EMAILS']) and $conf_UAM['ADD_GALLERY_URL_TO_EMAILS'] == 'true') 1622 1624 { 1623 UAMLog(get_absolute_root_url(),'','','');1624 1625 pwg_mail($email, array( 1625 1626 'subject' => $subject, … … 2795 2796 $query = ' 2796 2797 SELECT DISTINCT u.'.$conf['user_fields']['id'].' AS id, 2798 u.UAM_validated, 2797 2799 ui.registration_date 2798 2800 FROM '.USERS_TABLE.' AS u … … 2802 2804 AND u.'.$conf['user_fields']['id'].' <> '.$conf['default_user_id'].' 2803 2805 AND (TO_DAYS(NOW()) - TO_DAYS(ui.registration_date) >= "'.$conf_UAM_ConfirmMail['CONFIRMMAIL_DELAY'].'") 2806 AND u.UAM_validated <> "true" 2804 2807 ORDER BY ui.registration_date ASC;'; 2805 2808
Note: See TracChangeset
for help on using the changeset viewer.