- Patch #7314 by jluster: added support to ping technorati.com

4.5.x
Dries Buytaert 2004-04-23 06:30:42 +00:00
parent ee4ccb6e4c
commit cf98e0a1fc
2 changed files with 26 additions and 0 deletions

View File

@ -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'");
}
}
?>

View File

@ -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'");
}
}
?>