Changeset 20592 for extensions/UserAdvManager/branches/2.41/include
- Timestamp:
- Feb 6, 2013, 9:08:29 PM (11 years ago)
- Location:
- extensions/UserAdvManager/branches/2.41/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/branches/2.41/include/constants.php
r4952 r20592 1 1 <?php 2 2 3 global $prefixeTable; 3 4 define('USER_CONFIRM_MAIL_TABLE', $prefixeTable.'user_confirm_mail'); 4 5 define('USER_LASTVISIT_TABLE', $prefixeTable.'user_lastvisit_check'); 5 6 define('UAM_OBSOLETE', 'obsolete.list'); 7 6 8 ?> -
extensions/UserAdvManager/branches/2.41/include/functions.inc.php
r19954 r20592 137 137 $passwd = (isset($_POST['password'])) ? $_POST['password'] : ''; 138 138 139 if (isset($conf_UAM[1]) and $conf_UAM[1] == 'local') 140 { 141 // This is to set user to "waiting" group or status and without ConfirMail until admin validation 142 // ---------------------------------------------------------------------------------------------- 143 SetPermission($register_user['id']);// Set to "waiting" group or status until admin validation 144 145 // This is to set UAM_validated field to false in #_users table - Usefull if no "waiting" group or status is set 146 // ------------------------------------------------------------------------------------------------------------- 147 SetUnvalidated($register_user['id']); 148 149 // This is to send the validation key by email to admins for their manual validation without having to connect the gallery 150 // ----------------------------------------------------------------------------------------------------------------------- 151 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 152 } 153 // Sending registration confirmation by email 154 // ------------------------------------------ 155 elseif (isset($conf_UAM[1]) and $conf_UAM[1] == 'true') 156 { 157 if (is_admin() and isset($conf_UAM[19]) and $conf_UAM[19] == 'true') 158 { 159 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 160 } 161 elseif (is_admin() and isset($conf_UAM[19]) and $conf_UAM[19] == 'false') 162 { 163 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false); 164 } 165 elseif (!is_admin()) 166 { 139 // No validation needed when admins add users - users are considered as valid by default 140 // ------------------------------------------------------------------------------------- 141 if (isset($page['page']) and ($page['page'] != 'user_list')) 142 { 143 if (isset($conf_UAM[1]) and $conf_UAM[1] == 'local') 144 { 145 // This is to set user to "waiting" group or status and without ConfirMail until admin validation 146 // ---------------------------------------------------------------------------------------------- 147 SetPermission($register_user['id']);// Set to "waiting" group or status until admin validation 148 149 // This is to set UAM_validated field to false in #_users table - Usefull if no "waiting" group or status is set 150 // ------------------------------------------------------------------------------------------------------------- 151 SetUnvalidated($register_user['id']); 152 153 // This is to send the validation key by email to admins for their manual validation without having to connect the gallery 154 // ----------------------------------------------------------------------------------------------------------------------- 167 155 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 156 } 157 // Sending registration confirmation by email 158 // ------------------------------------------ 159 elseif (isset($conf_UAM[1]) and $conf_UAM[1] == 'true') 160 { 161 if (is_admin() and isset($conf_UAM[19]) and $conf_UAM[19] == 'true') 162 { 163 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 164 } 165 elseif (is_admin() and isset($conf_UAM[19]) and $conf_UAM[19] == 'false') 166 { 167 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false); 168 } 169 elseif (!is_admin()) 170 { 171 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 172 } 168 173 } 169 174 } … … 2001 2006 if ( $conf['guest_access'] ) 2002 2007 { 2003 return( 2008 return(get_absolute_root_url().'?key='.$Confirm_Mail_ID.'&userid='.$user_id); 2004 2009 } 2005 2010 else 2006 2011 { 2007 return( 2012 return(get_absolute_root_url().'identification.php?key='.$Confirm_Mail_ID.'&userid='.$user_id); 2008 2013 } 2009 2014 } … … 2111 2116 if ( $conf['guest_access'] ) 2112 2117 { 2113 return( 2118 return(get_absolute_root_url().'?key='.$Confirm_Mail_ID.'&userid='.$user_id); 2114 2119 } 2115 2120 else 2116 2121 { 2117 return( 2122 return(get_absolute_root_url().'identification.php?key='.$Confirm_Mail_ID.'&userid='.$user_id); 2118 2123 } 2119 2124 } -
extensions/UserAdvManager/branches/2.41/include/upgradedb.inc.php
r18479 r20592 26 26 /* even if no database upgrade is needed */ 27 27 /* *************************************** */ 28 28 29 function UAM_version_update() 29 30 {
Note: See TracChangeset
for help on using the changeset viewer.