* Invision Power Services * IP.Board v3.2.3 * Converge Server Interface * Last Updated: $Date: 2011-03-11 12:41:48 -0500 (Fri, 11 Mar 2011) $ * * * @author $Author: ips_terabyte $ * @copyright (c) 2001 - 2009 Invision Power Services, Inc. * @license This is NULLED! * @package IP.Board * @subpackage IP.Converge * @link http://hatynka.in * @since 2.1.0 * @version $Revision: 8042 $ * */ /** * Script type * */ define( 'IPB_THIS_SCRIPT', 'api' ); /** * Matches IP address of requesting API * Set to 0 to not match with IP address */ define( 'CVG_IP_MATCH', 1 ); require_once( '../initdata.php' );/*noLibHook*/ //=========================================================================== // MAIN PROGRAM //=========================================================================== require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/ $registry = ipsRegistry::instance(); $registry->init(); //-------------------------------- // Initialize the FUNC //-------------------------------- if ( ! ipsRegistry::$settings['ipconverge_enabled'] ) { @header( "Content-type: text/xml" ); print " faultCode 1 faultString IP.Converge is not enabled from your ACP Control Panel. Log into your IP.Board ACP and visit: Tools & Settings -> IP.Converge Configuration and update "Enable IP.Converge" "; exit(); } //=========================================================================== // Define Service //=========================================================================== require_once( DOC_IPS_ROOT_PATH . 'converge_local/apis/server_functions.php' );/*noLibHook*/ require_once( IPS_KERNEL_PATH . 'classApiServer.php' );/*noLibHook*/ //=========================================================================== // Create the XML-RPC Server //=========================================================================== $server = new classApiServer(); $webservice = new Converge_Server( $registry ); $webservice->classApiServer =& $server; $api = $server->decodeRequest(); $server->addObjectMap( $webservice, 'UTF-8' ); //----------------------------------------- // Process.... //----------------------------------------- $server->getXmlRpc(); exit;