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

dokuwiki_xmlrpc_server::toDate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
rs 10
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