- Timestamp:
- Mar 30, 2012, 9:38:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/include/functions.inc.php
r13528 r13822 100 100 if ($register_user['username'] != "16" and $register_user['username'] != "18") 101 101 { 102 $passwd = (isset($_POST['password'])) ? $_POST['password'] : ''; 103 102 104 if ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'local')) 103 105 { 104 106 // This is to send an information email and set user to "waiting" group or status until admin validation 105 107 // ----------------------------------------------------------------------------------------------------- 106 $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';107 108 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false); 108 109 SetPermission($register_user['id']);// Set to "waiting" group or status until admin validation … … 118 119 // This is to send an information email without validation key 119 120 // ----------------------------------------------------------- 120 $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';121 121 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false); 122 122 } … … 127 127 if (is_admin() and isset($conf_UAM[19]) and $conf_UAM[19] == 'true') 128 128 { 129 $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';130 129 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 131 130 } 132 131 elseif (is_admin() and isset($conf_UAM[19]) and $conf_UAM[19] == 'false') 133 132 { 134 $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';135 133 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false); 136 134 } 137 135 elseif (!is_admin()) 138 136 { 139 $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';140 137 SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true); 141 138 } … … 1598 1595 } 1599 1596 1600 if (!is_admin() and $conf_UAM[ 2] <> -1) // Set privacy level1597 if (!is_admin() and $conf_UAM[35] <> -1) // Set privacy level 1601 1598 { 1602 1599 $query = " … … 1604 1601 (user_id, level) 1605 1602 VALUES 1606 ('".$user_id."', '".$conf_UAM[ level]."')1603 ('".$user_id."', '".$conf_UAM[35]."') 1607 1604 ;"; 1608 1605 pwg_query($query);
Note: See TracChangeset
for help on using the changeset viewer.