UpdateDatabase.php
[Pman.Core] / NotifySmtpCheck.php
index 6333af5..cf87c78 100644 (file)
@@ -39,9 +39,15 @@ class Pman_Core_NotifySmtpCheck extends Pman
             return;
         }
         
-        print_R($element->item(0));exit;
+        $ip = $element->item(0)->nodeValue;
         
-        print_R($lists);exit;
+        $cmd = "host {$ip}";
+        
+        $e = `$cmd`;
+        
+        $helo = substr(array_pop(explode(' ', $e)), 0, -1);
+        
+        print_R($helo);exit;
         
         $error = array();