3 This script simply calls the WikiSync backend for a given sync URL.
4 It is probably rarely useful, and you should rather use the standalone
5 frontend/tool for this.
8 // define("SYNC_URL", "wikisync://example.net/ewiki/tools/t_sync.php");
12 if (defined("SYNC_URL")) {
16 if (!function_exists("xmlrpc")) include("plugins/lib/xmlrpc.php");
17 if (!function_exists("phprpc")) include("plugins/lib/phprpc.php");
18 if (!function_exists("ewiki_sync_local")) include("plugins/lib/sync.php");
21 if ($rlist = ewiki_sync_remote("::LIST")) {
22 $locall = ewiki_sync_local("::LIST");
23 echo "[$cron]: ".count($llocal)." pages here, ".count($rlist)." remotely\n";
27 echo "[$cron]: downloading from $url\n";
31 "ewiki_sync_remote", "ewiki_sync_local"
35 echo "[$cron]: uploading from $url\n";
39 "ewiki_sync_local", "ewiki_sync_remote"
42 echo "[$cron]: done\n";
45 echo "[$cron]: No connection to $url\n";