blob: 7566e3826753fe18c1ff21a0dab503f5a594ba53 [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2
3/**
4 * Loads and instantiates XML-RPC server class
5 *
6 * @access private called by the app controller
7 */
8
9$config = array();
10if (file_exists(APPPATH.'config/xmlrpcs'.EXT))
11{
12 include_once(APPPATH.'config/xmlrpcs'.EXT);
13}
14
15if ( ! class_exists('CI_XML_RPC_Server'))
16{
17 require_once(BASEPATH.'libraries/Xmlrpc'.EXT);
18 require_once(BASEPATH.'libraries/Xmlrpcs'.EXT);
19}
20
21$obj =& get_instance();
22$obj->xmlrpc = new CI_XML_RPC();
23$obj->xmlrpcs = new CI_XML_RPC_Server($config);
24$obj->ci_is_loaded[] = 'xmlrpc';
25$obj->ci_is_loaded[] = 'xmlrpcs';
26
27?>