1797c0d11SAndreas Gohr<?php 2*1cdd0090SAndreas Gohr/** 3*1cdd0090SAndreas Gohr * XMLRPC API backend 4*1cdd0090SAndreas Gohr */ 5dd87735dSAndreas Gohr 6*1cdd0090SAndreas Gohruse dokuwiki\Remote\XmlRpcServer; 7dd87735dSAndreas Gohr 87aec69d1SGuy Brandif(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__).'/../../'); 9797c0d11SAndreas Gohr 10797c0d11SAndreas Gohrrequire_once(DOKU_INC.'inc/init.php'); 11797c0d11SAndreas Gohrsession_write_close(); //close session 12593bf8f6SMichael Klier 132a9d6d65SFlorian Rathgeberif(!$conf['remote']) die((new IXR_Error(-32605, "XML-RPC server not enabled."))->getXml()); 14593bf8f6SMichael Klier 15*1cdd0090SAndreas Gohr$server = new XmlRpcServer(); 16