[pLog-CVS] plog_plugins pluginxmlrpc.class.php,NONE,1.1
Brought to you by:
jondaley
From: <phu...@us...> - 2003-11-19 18:41:38
|
Update of /cvsroot/plog/plog_plugins In directory sc8-pr-cvs1:/tmp/cvs-serv23979 Added Files: pluginxmlrpc.class.php Log Message: Offers some configuration options for the XMLRPC service added for 0.2. --- NEW FILE: pluginxmlrpc.class.php --- <?php include_once( "pluginbase.class.php" ); include_once( "pluginmanager.class.php" ); /** * Basic configuration page for the XMLRPC plugin. */ class PluginXmlRpc extends PluginBase { function PluginXmlRpc() { $this->PluginBase(); $this->desc = "Implementation of the Blogger XMLRPC API for pLog. The following methods are supported:<br/><br/><b> blogger.newPost<br/> blogger.getUserInfo<br/> blogger.getPost<br/> blogger.editPost<br/> blogger.deletePost<br/> blogger.getRecentPosts<br/> blogger.getUserInfo<br/> blogger.getUsersBlogs</b><br/><br/> Please point your your XMLRPC client to http://your.plog.host/xmlrpc.php in order to get it working. Further instructions can be read <a href=\"fix_me\">here</a> "; $this->author = "<a href=\"http://www.phpn.de/\">http://www.phpn.de/</a>"; } /*function configure( $params ) { // fetch the parameters from the request $pluginEnabled = $params->getValue( "xmlrpcPluginEnabled" ); if( $pluginEnabled == "" ) $pluginEnabled = false; $this->blogSettings->setValue( "xmlrpc_plugin_enabled", $pluginEnabled ); $this->updateBlogSettings(); return true; } function getConfigurationMessage() { $pluginEnabled = $this->blogSettings->getValue( "xmlrpc_plugin_enabled" ); $message = "<form name=\"configurePlugin\" method=\"post\" action=\"admin.php\"> Enable XMLRPC access for this blog: <input type=\"checkbox\" name=\"xmlrpcPluginEnabled\" value=\"1\""; if( $pluginEnabled == true ) $message .= " checked=\"checked\""; $message .= " /><br/><br/> <input type=\"hidden\" name=\"op\" value=\"updatePluginConfig\" /> <input type=\"hidden\" name=\"pluginId\" value=\"xmlrpc\" /> <input type=\"submit\" name=\"Configure\" value=\"Configure\" /> </form>"; return $message; }*/ } PluginManager::registerPlugin( "xmlrpc", "PluginXmlRpc" ); ?> |