public static function respond() { $server = new IXR_IntrospectionServer(); foreach (PicoraXMLRPC::getMethods() as $name => $info) { $server->addCallback($name, create_function('$args', 'return call_user_func_array(array(\'' . $info[0][0] . '\',\'' . $info[0][1] . '\'),$args);'), $info[1], isset($info[2]) ? $info[2] : ''); } $server->serve(file_get_contents("php://input")); exit; }
/** * Send a PingBack ping. * @param string $server XMLRPC endpoint * @param string $from URL PingBack from * @param string $to URL PingBack from * @return array (bool success,string response) */ public static function ping($server, $from, $to) { return PicoraXMLRPC::call($server, 'pingback.ping', $from, $to); }