- Patch #7314 by jluster: added support to ping technorati.com
parent
ee4ccb6e4c
commit
cf98e0a1fc
|
@ -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'");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -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'");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue