projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b1d7ed
)
NotifySmtpCheck.php
author
edward
<edward@roojs.com>
Thu, 14 Jul 2016 05:20:24 +0000
(13:20 +0800)
committer
edward
<edward@roojs.com>
Thu, 14 Jul 2016 05:20:24 +0000
(13:20 +0800)
NotifySmtpCheck.php
patch
|
blob
|
history
diff --git
a/NotifySmtpCheck.php
b/NotifySmtpCheck.php
index
a7bddbb
..
35aa7b6
100644
(file)
--- a/
NotifySmtpCheck.php
+++ b/
NotifySmtpCheck.php
@@
-30,8
+30,9
@@
class Pman_Core_NotifySmtpCheck extends Pman
$ifconfig = file_get_contents("https://ifconfig.co/");
$dom = new DomDocument('1.0', 'utf-8');
$dom->loadHTML($ifconfig);
- print_R($dom);exit;
+
$xpath = new DOMXPath($dom);
+
$lists = $xpath->query("code[@class='ip]");