function ewiki_sync_remote($func, $args = NULL) { global $proto, $url; if ($proto == "sync") { switch (strtoupper(trim($func, ":"))) { case "GET": return phprpc($url, "ewiki.sync", array("::GET", $args)); case "WRITE": return phprpc($url, "ewiki.sync", array("::WRITE", $args)); case "LIST": return phprpc($url, "ewiki.sync", array("::LIST", false)); default: } } }
function INIT() { return phprpc($this->url, "ewiki_db::INIT", array()); }