[ 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', dirname(__FILE__).'/../../');
   9  
  10  require_once (DOKU_INC.'inc/init.php');
  11  session_write_close();  //close session
  12  
  13  if(!$conf['remote']) die((new IXR_Error(-32605, "XML-RPC server not enabled."))->getXml());
  14  
  15  $server = new XmlRpcServer();