summaryrefslogtreecommitdiffstats
path: root/system/libraries/Xmlrpcs.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-26 05:52:45 +0200
committeradmin <devnull@localhost>2006-09-26 05:52:45 +0200
commite79dc7130a0003a07833609487b8ebb5ebcf31c8 (patch)
tree8400c41761ddcd7a9338637eefc9429d501d87ff /system/libraries/Xmlrpcs.php
parent30c3b9709a12b7346c7057e656a491ffb9168f55 (diff)
Diffstat (limited to 'system/libraries/Xmlrpcs.php')
-rw-r--r--system/libraries/Xmlrpcs.php33
1 files changed, 32 insertions, 1 deletions
diff --git a/system/libraries/Xmlrpcs.php b/system/libraries/Xmlrpcs.php
index 0543c3b78..4d50dfb96 100644
--- a/system/libraries/Xmlrpcs.php
+++ b/system/libraries/Xmlrpcs.php
@@ -12,7 +12,38 @@
* @since Version 1.0
* @filesource
*/
-
+
+
+// INITIALIZE THE CLASS ---------------------------------------------------
+
+$config = array();
+if (file_exists(APPPATH.'config/xmlrpcs'.EXT))
+{
+ include_once(APPPATH.'config/xmlrpcs'.EXT);
+}
+
+if ( ! class_exists('CI_XML_RPC'))
+{
+ if ( ! file_exists(BASEPATH.'libraries/Xmlrpc'.EXT))
+ {
+ if ( ! file_exists(APPPATH.'libraries/Xmlrpc'.EXT))
+ {
+ show_error('Unable to locate the Xmlrpc class');
+ }
+ else
+ {
+ require_once(APPPATH.'libraries/Xmlrpc'.EXT);
+ }
+ }
+ else
+ {
+ require_once(BASEPATH.'libraries/Xmlrpc'.EXT);
+ }
+}
+
+$obj =& get_instance();
+$obj->xmlrpcs = new CI_XML_RPC_Server($config);
+
// ------------------------------------------------------------------------
/**