aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/exe/xmlrpc.php
blob: 9fad90136187a6ca8412f94a2e233d004ec8b3e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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());
}