1797c0d11SAndreas Gohr<?php 21cdd0090SAndreas Gohr/** 31cdd0090SAndreas Gohr * XMLRPC API backend 41cdd0090SAndreas Gohr */ 5dd87735dSAndreas Gohr 61cdd0090SAndreas Gohruse dokuwiki\Remote\XmlRpcServer; 7dd87735dSAndreas Gohr 8*4b867325SAndreas Gohrif (!defined('DOKU_INC')) define('DOKU_INC', __DIR__ . '/../../'); 9797c0d11SAndreas Gohr 10797c0d11SAndreas Gohrrequire_once(DOKU_INC . 'inc/init.php'); 11797c0d11SAndreas Gohrsession_write_close(); //close session 12593bf8f6SMichael Klier 13*4b867325SAndreas Gohr$server = new XmlRpcServer(true); 14*4b867325SAndreas Gohrtry { 15*4b867325SAndreas Gohr $server->serve(); 16*4b867325SAndreas Gohr} catch (\Exception $e) { 17*4b867325SAndreas Gohr $server->error($e->getCode(), $e->getMessage()); 18*4b867325SAndreas Gohr} 19