1<?php
2
3/**
4 * XMLRPC API backend
5 */
6
7use dokuwiki\Remote\XmlRpcServer;
8
9if (!defined('DOKU_INC')) define('DOKU_INC', __DIR__ . '/../../');
10
11require_once(DOKU_INC . 'inc/init.php');
12session_write_close();  //close session
13
14$server = new XmlRpcServer(true);
15try {
16    $server->serve();
17} catch (\Exception $e) {
18    $server->error($e->getCode(), $e->getMessage());
19}
20