aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/exe/xmlrpc.php
blob: ff83173285d56a8f60fd22f558e9b5064e2380da (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() ?: 1, $e->getMessage());
}