summaryrefslogtreecommitdiffstats
path: root/system/init/init_xmlrpcs.php
blob: a900894aab067c5603464b3eeb69d74172faa2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Loads and instantiates XML-RPC server class
 *
 * @access	private called by the app controller
 */	

$config = array();
if (file_exists(APPPATH.'config/xmlrpcs'.EXT))
{
	include_once(APPPATH.'config/xmlrpcs'.EXT);
}

if ( ! class_exists('CI_XML_RPC_Server'))
{			
	require_once(BASEPATH.'libraries/Xmlrpc'.EXT);
	require_once(BASEPATH.'libraries/Xmlrpcs'.EXT);
}



// INITIALIZE THE CLASS ---------------------------------------------------

$obj =& get_instance();
$obj->xmlrpc  = new CI_XML_RPC();
$obj->xmlrpcs = new CI_XML_RPC_Server($config);
$obj->ci_is_loaded[] = 'xmlrpc';
$obj->ci_is_loaded[] = 'xmlrpcs';

// ------------------------------------------------------------------------

?>