summaryrefslogtreecommitdiffstats
path: root/system/init/init_xmlrpc.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/init/init_xmlrpc.php')
-rw-r--r--system/init/init_xmlrpc.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/system/init/init_xmlrpc.php b/system/init/init_xmlrpc.php
new file mode 100644
index 000000000..b75e9aad7
--- /dev/null
+++ b/system/init/init_xmlrpc.php
@@ -0,0 +1,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';
+
+?> \ No newline at end of file