Changeset 3393 for extensions/NBC_UserAdvManager/main.inc.php
- Timestamp:
- Jun 4, 2009, 9:14:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/main.inc.php
r3385 r3393 2 2 /* 3 3 Plugin Name: NBC UserAdvManager 4 Version: 2.10.9 4 Version: 2.10.9a 5 5 Description: Permet de renforcer les possibilités de gestion des utilisateurs - Enforce users management 6 6 Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216 … … 34 34 Bug fixed - Audit on forbidden characters in username didn't work 35 35 Adding of email provider exclusion (like *@hotmail.com) - Warning ! -> Known bug : This feature doesn't work on user profile page. So, already registered users can change their email address to a forbiden one. 36 37 -- 2.10.9a : Email provider exclusion is no longer case sensitive 36 38 37 39 */ … … 188 190 /* This work with a code copy of ValidateEmailProvider() function */ 189 191 if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['email'])) 192 $ncsemail = strtolower($_POST['email']); 190 193 { 191 194 $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]); 192 195 for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++) 193 196 { 194 if (ereg($conf_nbc_MailExclusion[$i], $ _POST['email']))197 if (ereg($conf_nbc_MailExclusion[$i], $ncsemail)) 195 198 { 196 199 $lang['reg_err_login1'] = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'"; … … 232 235 /* This work with a code copy of ValidateEmailProvider() function */ 233 236 if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['mail_address'])) 237 $ncsemail = strtolower($_POST['mail_address']); 234 238 { 235 239 $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]); 236 240 for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++) 237 241 { 238 if (ereg($conf_nbc_MailExclusion[$i], $ _POST['mail_address']))242 if (ereg($conf_nbc_MailExclusion[$i], $ncsemail)) 239 243 { 240 244 $lang['reg_err_login1'] = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'"; … … 298 302 /* This don't work on user's profile page - Why ?? */ 299 303 if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['mail_address'])) 304 $ncsemail = strtolower($_POST['mail_address']); 300 305 { 301 306 $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]); 302 307 for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++) 303 308 { 304 if (ereg($conf_nbc_MailExclusion[$i], $ _POST['mail_address']))309 if (ereg($conf_nbc_MailExclusion[$i], $ncsemail)) 305 310 { 306 311 $mail_error = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'";
Note: See TracChangeset
for help on using the changeset viewer.