Completed
Push — psr2 ( 272a98...1cdd00 )
by Andreas
15:16 queued 11:36
created

dokuwiki_xmlrpc_server::call()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 16
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 4
eloc 13
nc 4
nop 2
dl 0
loc 16
rs 9.2
c 0
b 0
f 0
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