From cf98e0a1fc3ae8fcc2766191e470ff5d4e01c7e1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 23 Apr 2004 06:30:42 +0000 Subject: [PATCH] - Patch #7314 by jluster: added support to ping technorati.com --- modules/ping.module | 13 +++++++++++++ modules/ping/ping.module | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/modules/ping.module b/modules/ping.module index c60173b63b4..5c641c560db 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 c60173b63b4..5c641c560db 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'"); + } + + } ?>