SyncCode I3 common.inc.php
From MWWiki
Back to WordPress Synchronizer
<?php define('WS', 1); include_once('classes/class.Config.inc.php'); include_once('classes/class.WordRPC.inc.php'); include_once('lib/FirePHPCore/fb.php'); $cfg = Config::getInstance(); // $one will be treated as the "local" blog, even if that is not the case // implementation is such that "local" and "remote" are only names, not limitations $local = new WordRPC($cfg->getValue('url1'), $cfg->getValue('username1'), $cfg->getValue('password1')); // $two will be treated as the "remote" blog $remote = new WordRPC($cfg->getValue('url2'), $cfg->getValue('username2'), $cfg->getValue('password2')); ?>
