xmlrpc.php 365 B

123456789101112131415161718
  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. }