[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/exe/ -> xmlrpc.php (source)

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