summaryrefslogtreecommitdiffstats
path: root/system/init/init_xmlrpc.php
blob: b75e9aad7917188319966030febc06491bfe5d9a (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
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

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

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

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

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

?>