aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/exe/xmlrpc.php
blob: e90fb9eba4ad0c1eb872592ede17b4b32f99ce32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * XMLRPC API backend
 */

use dokuwiki\Remote\XmlRpcServer;

if (!defined('DOKU_INC')) define('DOKU_INC', __DIR__ . '/../../');

require_once(DOKU_INC . 'inc/init.php');
session_write_close();  //close session

$server = new XmlRpcServer(true);
try {
    $server->serve();
} catch (\Exception $e) {
    $server->error($e->getCode(), $e->getMessage());
}