Initial commit
This commit is contained in:
15
content/lib/exe/xmlrpc.php
Normal file
15
content/lib/exe/xmlrpc.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* XMLRPC API backend
|
||||
*/
|
||||
|
||||
use dokuwiki\Remote\XmlRpcServer;
|
||||
|
||||
if(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__).'/../../');
|
||||
|
||||
require_once(DOKU_INC.'inc/init.php');
|
||||
session_write_close(); //close session
|
||||
|
||||
if(!$conf['remote']) die((new IXR_Error(-32605, "XML-RPC server not enabled."))->getXml());
|
||||
|
||||
$server = new XmlRpcServer();
|
Reference in New Issue
Block a user