projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
UpdateDatabase.php
[Pman.Core]
/
NotifySmtpCheck.php
diff --git
a/NotifySmtpCheck.php
b/NotifySmtpCheck.php
index
6333af5
..
cf87c78
100644
(file)
--- a/
NotifySmtpCheck.php
+++ b/
NotifySmtpCheck.php
@@
-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();