6
I am not that familiar with negative regex either, so I will just stick to the alternative
. Open the file "include/functions.php" and lookup funtion "checkEmail". Change it to this and replace "myschools" and "edu" with the domain values of your choice (if you want to use another domain).
function checkEmail($email,$antispam = false)
{
if (!$email || !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i",$email)){
return false;
} else if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@myschools+([\.]edu+)+$/i",$email)) {
return false;
}
if ($antispam) {
$email = str_replace("@", " at ", $email);
$email = str_replace(".", " dot ", $email);
return $email;
} else {
return true;
}
}
If you want to stop using this check, simply remove the part from "else if" to "return false; }"
Martijn