[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 use dokuwiki\Remote\JsonRpcServer; 4 5 if (!defined('DOKU_INC')) define('DOKU_INC', __DIR__ . '/../../'); 6 7 require_once (DOKU_INC . 'inc/init.php'); 8 session_write_close(); //close session 9 10 header('Content-Type: application/json'); 11 12 $server = new JsonRpcServer(); 13 try { 14 $result = $server->serve(); 15 } catch (\Exception $e) { 16 $result = $server->returnError($e); 17 } 18 19 echo json_encode($result, JSON_THROW_ON_ERROR);
title
Description
Body
title
Description
Body
title
Description
Body
title
Body