Completed
Push — psr2 ( 272a98...1cdd00 )
by Andreas
19:29 queued 15:19
created

dokuwiki_xmlrpc_server   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 6

Importance

Changes 0
Metric Value
dl 0
loc 51
rs 10
c 0
b 0
f 0
wmc 7
lcom 1
cbo 6
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();
16