5
Actually, a well-placed ! in register.php and inputting the allowed domain in the user info preferences should do the trick.
However, if you have multiple allowed domains, this ought to work - try it out:
foreach ($xoopsConfigUser['bad_emails'] as $be) {
if (!empty($be) && preg_match("/".$be."/i", $email)) {
$stop .= _US_INVALIDMAIL.'
';
break;
}
}
could be changed to
$found_domain = false;
foreach ($xoopsConfigUser['bad_emails'] as $be) {
if (!empty($be) && preg_match("/".$be."/i", $email)) {
$found_domain = true;
}
}
if (!$found_domain) {
$stop .= _US_INVALIDMAIL.'
';
}
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."
Cusix Software