summaryrefslogtreecommitdiffstats
path: root/system/init/init_xmlrpcs.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-08-25 19:25:49 +0200
committeradmin <devnull@localhost>2006-08-25 19:25:49 +0200
commitb0dd10f8171945e0c1f3527dd1e9d18b043e01a7 (patch)
treec3583ba09e72217683c4304f4690df6ce39ba731 /system/init/init_xmlrpcs.php
Initial Import
Diffstat (limited to 'system/init/init_xmlrpcs.php')
-rw-r--r--system/init/init_xmlrpcs.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/system/init/init_xmlrpcs.php b/system/init/init_xmlrpcs.php
new file mode 100644
index 000000000..7566e3826
--- /dev/null
+++ b/system/init/init_xmlrpcs.php
@@ -0,0 +1,27 @@
+<?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);
+}
+
+$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';
+
+?> \ No newline at end of file