diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ping.module | 13 | ||||
-rw-r--r-- | modules/ping/ping.module | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/modules/ping.module b/modules/ping.module index c60173b63..5c641c560 100644 --- a/modules/ping.module +++ b/modules/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'"); + } + + } ?> 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'"); + } + + } ?> |