diff options
author | root <root@wp-mailer.us> | 2014-09-16 13:57:07 -0400 |
---|---|---|
committer | root <root@wp-mailer.us> | 2014-09-16 13:57:07 -0400 |
commit | 919f7e33390ce58fee3480c5f01dfd7415d6b322 (patch) | |
tree | ae52c0f5f517a78127027dd45a1b669cbe72c1e1 | |
parent | d6477ca260f4ac67a889366e89116a40672f5c56 (diff) | |
download | verifyEmail-919f7e33390ce58fee3480c5f01dfd7415d6b322.zip verifyEmail-919f7e33390ce58fee3480c5f01dfd7415d6b322.tar.gz verifyEmail-919f7e33390ce58fee3480c5f01dfd7415d6b322.tar.bz2 |
Replaced ereg functions with preg_match
-rw-r--r-- | verify.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,7 +41,7 @@ function verifyEmail($toemail, $fromemail, $getdetails = false){ $connect = @fsockopen($mx_ip, 25); if($connect){ - if(ereg("^220", $out = fgets($connect, 1024))){ + if(preg_match("/^220/i", $out = fgets($connect, 1024))){ fputs ($connect , "HELO $mx_ip\r\n"); $out = fgets ($connect, 1024); $details .= $out."\n"; @@ -57,7 +57,7 @@ function verifyEmail($toemail, $fromemail, $getdetails = false){ fputs ($connect , "QUIT"); fclose($connect); - if(!ereg("^250", $from) || !ereg("^250", $to)){ + if(!preg_match("/^250/i", $from) || !preg_match("/^250/i", $to)){ $result = "invalid"; } else{ |