1
Hello !
I am using XOOPS to manage a large student website (3 schools represented)
We would like to protect our content from non-students by allowing only 3 email domains at registration: @school1.edu @school2.edu...
After searching a bit on internet i found a little clue.
In register.php there is the following code:
foreach ($xoopsConfigUser['bad_emails'] as $be) {
if (!empty($be) && preg_match("/".$be."/i", $email)) {
$stop .= _US_INVALIDMAIL.'
';
break;
}
}
If i change "preg_match" to "!preg_match" it should work, but it isn't. Well, it works when i specify only one domain name in the "bad emails" area on the "email preference" administration page, not 3.
I think i got it wrong with the regex on the email preference page.
what should i write in the field ?
@school1.edu | @school2.edu | @school3.edu
or maybe @school1.edu$ | .. ?
Thanks for your help !!
Franck