public function pingBloggDe() { $b = new BLOG($this->myBlogId); $message = new xmlrpcmsg('bloggUpdates.ping', array(new xmlrpcval($b->getName(), 'string'), new xmlrpcval($b->getURL(), 'string'))); $c = new xmlrpc_client('/', 'xmlrpc.blogg.de', 80); //$c->setDebug(1); // 30 seconds timeout... $r = $c->send($message, 30); return $this->processPingResult($r); }
function event_PostAddItem($data) { if ($this->draft == "no" && $this->podcast == true && $this->getOption('ping') == "yes") { $b = new BLOG($this->myBlogId); if (!class_exists('xmlrpcmsg')) { global $DIR_LIBS; include $DIR_LIBS . 'xmlrpc.inc.php'; } $message = new xmlrpcmsg('weblogUpdates.ping', array(new xmlrpcval($b->getName(), 'string'), new xmlrpcval($b->getURL(), 'string'))); $c = new xmlrpc_client('/RPC2', 'audiorpc.weblogs.com', 80); //$c->setDebug(1); $r = $c->send($message, 15); // 15 seconds timeout... $m = new xmlrpc_client('/pingserver.php', 'mcierror.axisz.jp', 80); $r = $m->send($message, 15); } }