You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
366 B

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