Changeset 7656 for extensions/NBC_UserAdvManager/trunk/main.inc.php
- Timestamp:
- Nov 5, 2010, 7:18:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/main.inc.php
r7277 r7656 2 2 /* 3 3 Plugin Name: UserAdvManager 4 Version: 2.15. 84 Version: 2.15.9 5 5 Description: Renforcer la gestion des utilisateurs - Enforce users management 6 6 Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216 … … 110 110 if ($register_user['username'] != "16" and $register_user['username'] != "18") 111 111 { 112 if ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'local') and ($register_user['username'] != "16" and $register_user['username'] != "18"))112 if ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'local')) 113 113 { 114 114 /* This is to send an information email and set user to "waiting" group or status until admin validation */ … … 117 117 setgroup($register_user['id']);// Set to "waiting" group or status until admin validation 118 118 } 119 elseif ((isset($conf_UAM[0]) and $conf_UAM[0] == 'false') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'local') and ($register_user['username'] != "16" and $register_user['username'] != "18"))119 elseif ((isset($conf_UAM[0]) and $conf_UAM[0] == 'false') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'local')) 120 120 { 121 121 /* This is to set user to "waiting" group or status until admin validation */ 122 122 setgroup($register_user['id']);// Set to "waiting" group or status until admin validation 123 123 } 124 elseif ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'false') and ($register_user['username'] != "16" and $register_user['username'] != "18"))124 elseif ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'false')) 125 125 { 126 126 /* This is to send an information email without validation key */ … … 129 129 } 130 130 /* Sending registration confirmation by email */ 131 elseif ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true' ) and (isset($conf_UAM[1]) and $conf_UAM[1] == 'true') and ($register_user['username'] != "16" and $register_user['username'] != "18"))131 elseif ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true' or $conf_UAM[0] == 'false') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'true')) 132 132 { 133 133 if (is_admin() and isset($conf_UAM[20]) and $conf_UAM[20] == 'true')
Note: See TracChangeset
for help on using the changeset viewer.