diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-04-23 06:30:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-04-23 06:30:42 +0000 |
commit | cf98e0a1fc3ae8fcc2766191e470ff5d4e01c7e1 (patch) | |
tree | 9cf6781d3ddbfa324e087d84b5544b79d7149fc2 /modules/ping | |
parent | ee4ccb6e4c116ca403f2ac1ad2a30c5d1e08cf7e (diff) | |
download | brdo-cf98e0a1fc3ae8fcc2766191e470ff5d4e01c7e1.tar.gz brdo-cf98e0a1fc3ae8fcc2766191e470ff5d4e01c7e1.tar.bz2 |
- Patch #7314 by jluster: added support to ping technorati.com
Diffstat (limited to 'modules/ping')
-rw-r--r-- | modules/ping/ping.module | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/ping/ping.module b/modules/ping/ping.module index c60173b63..5c641c560 100644 --- a/modules/ping/ping.module +++ b/modules/ping/ping.module @@ -75,5 +75,18 @@ function ping_ping($name = "", $url = "") { watchdog("error", "failed to notify 'blo.gs' "); } + unset($client); + + $client = new xmlrpc_client("/rpc/ping", "rpc.technorati.com", 80); + + $message = new xmlrpcmsg("weblogUpdates.ping", array(new xmlrpcval($name), new xmlrpcval($url))); + + $result = $client->send($message); + + if (!$result || $result->faultCode()) { + watchdog("error", "failed to notify 'technorati.com'"); + } + + } ?> |