"; exit(); } function dispatch($client, $method, $args) { $msg=new xmlrpcmsg($method, $args); $resp=$client->send($msg); if (!$resp) { print "

IO error: ".$client->errstr."

"; bomb(); } if ($resp->faultCode()) { print "

There was an error: " . $resp->faultCode() . " " . $resp->faultString() . "

"; bomb(); } return php_xmlrpc_decode($resp->value()); } // create client for discussion server $dclient=new xmlrpc_client("${mydir}/discuss.php", "xmlrpc.usefulinc.com", 80); // check if we're posting a comment, and send it if so @$storyid=$_POST["storyid"]; if ($storyid) { // print "Returning to " . $HTTP_POST_VARS["returnto"]; $res=dispatch($dclient, "discuss.addComment", array(new xmlrpcval($storyid), new xmlrpcval(stripslashes (@$_POST["name"])), new xmlrpcval(stripslashes (@$_POST["commenttext"])))); // send the browser back to the originating page Header("Location: ${mydir}/comment.php?catid=" . $_POST["catid"] . "&chanid=" . $_POST["chanid"] . "&oc=" . $_POST["catid"]); exit(0); } // now we've got here, we're exploring the story store ?> meerkat browser

Meerkat integration

Make a comment on the story

Your name:

Your comment:

" />
new xmlrpcval($chanid, "int"), "ids" => new xmlrpcval(1, "int"), "descriptions" => new xmlrpcval(200, "int"), "num_items" => new xmlrpcval(5, "int"), "dates" => new xmlrpcval(0, "int") ), "struct"))); } ?>

Subject area:

News source:

Stories available

"; print ""; print "\n"; // now look for existing comments $res=dispatch($dclient, "discuss.getComments", array(new xmlrpcval($v['id']))); if (sizeof($res)>0) { print "\n"; } print "\n"; } ?>
" . $v['title'] . "
"; print $v['description'] . "
"; print "Read full story "; print "Comment on this story"; print ""; print "

" . "Comments on this story:

"; for($i=0; $iFrom: " . htmlentities($s['name']) . "
"; print "Comment: " . htmlentities($s['comment']) . "

"; } print "


Meerkat powered, yeah!