projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fbd2b7
)
NotifySmtpCheck.php
author
edward
<edward@roojs.com>
Thu, 14 Jul 2016 05:18:06 +0000
(13:18 +0800)
committer
edward
<edward@roojs.com>
Thu, 14 Jul 2016 05:18:06 +0000
(13:18 +0800)
NotifySmtpCheck.php
patch
|
blob
|
history
diff --git
a/NotifySmtpCheck.php
b/NotifySmtpCheck.php
index
4688f36
..
ce350db
100644
(file)
--- a/
NotifySmtpCheck.php
+++ b/
NotifySmtpCheck.php
@@
-27,8
+27,14
@@
class Pman_Core_NotifySmtpCheck extends Pman
return;
}
- $ip = file_get_contents("https://ifconfig.co/");
- print_R($ip);exit;
+ $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();