UpdateDatabase.php
[Pman.Core] / NotifySmtpCheck.php
index 668760a..d63dd52 100644 (file)
@@ -27,6 +27,17 @@ class Pman_Core_NotifySmtpCheck extends Pman
             return;
         }
         
+        $ifconfig = file_get_contents("https://ifconfig.co/");
+        $dom = new DomDocument('1.0', 'utf-8');
+        $dom->loadHTML($ifconfig);
+        
+        $xpath = new DOMXPath($dom);
+        
+        $lists = $xpath->query("/code[@class='ip]");
+        
+        
+        print_R($lists);exit;
+        
         $error = array();
         
         foreach ($ff->Core_Notify['routes'] as $server => $settings){