private function _isValidEMailAddress($email)
{
$email = stripinput(trim(preg_replace("/ +/i", "", $email)));
if (preg_match("/^[-0-9A-Z_\\.]{1,50}@([-0-9A-Z_\\.]+\\.){1,50}([0-9A-Z]){2,4}\$/i", $email)) {
$check = dbcount("(user_id)", DB_USERS, "user_email='" . $email . "'");
if ($check > 0) {
$this->_userEMail = $email;
return TRUE;
} else {
// e-mail adress is not found
$this->_error = 1;
return FALSE;
}
} else {
// no valid e-mail adress
$this->_error = 2;
return FALSE;
}
}