pull/1/head
root 18 years ago
parent c826b3b46a
commit 8c3c11daa6

@ -586,6 +586,7 @@
function checkEmail($email)
{
$myemail = mysql_real_escape_string($email);
if(preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\+\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/" , $email))
{
list($username,$domain)=split('@',$email);
@ -619,14 +620,21 @@
fputs($fp, "QUIT\r\n");
fclose($fp);
$line = mysql_real_escape_string(trim(strip_tags($line)));
$query = "insert into `pinglog` set `when`=NOW(), `uid`='${_SESSION['profile']['id']}',
`email`='$myemail', `result`='$line'";
mysql_query($query);
if(substr($line, 0, 3) != "250")
return trim(strip_tags($line));
return $line;
else
break;
return "OK";
}
}
return "OK";
}
$query = "insert into `pinglog` set `when`=NOW(), `uid`='${_SESSION['profile']['id']}',
`email`='$myemail', `result`='Failed to make a connection to the mail server'";
mysql_query($query);
return _("Failed to make a connection to the mail server");
}
?>

Loading…
Cancel
Save