NotifySmtpCheck.php
[Pman.Core] / NotifySmtpCheck.php
index f818c7b..1e73473 100644 (file)
@@ -33,10 +33,17 @@ class Pman_Core_NotifySmtpCheck extends Pman
         
         $xpath = new DOMXPath($dom);
         
-        $lists = $xpath->query("code[@class='ip']");
+        $element = $xpath->query("//code[@class='ip']");
         
+        if(!$element->length){
+            return;
+        }
+        
+        $ip = $element->item(0)->nodeValue;
+        
+        $cmd = "host {$ip}";
         
-        print_R($lists);exit;
+        $e = `$cmd`;
         
         $error = array();