/** * @return String * @desc Saves a MovableType entry to the server using the mtclient class */ function movabletype_save($name, $str) { global $config, $javascript_msg; $plugin = $config['plugins'][$_SESSION['plugin']]; return mt_save($str, $plugin['username'], $plugin['password'], $plugin['host'], $plugin['path'], 'movabletype'); }
/** * @return String * @desc Saves a LJ entry to the LJ server using the Blogger API */ function livejournal_save($name, $str) { global $config, $javascript_msg, $livejournal_host, $livejournal_path; $plugin = $config['plugins'][$_SESSION['plugin']]; return mt_save($str, $plugin['username'], $plugin['password'], $livejournal_host, $livejournal_path, 'livejournal'); }