Skip to content
Snippets Groups Projects
Commit b967e5fc authored by Dominik Eckelmann's avatar Dominik Eckelmann
Browse files

removed requires, changed conf check in xmlrpc.php

parent 37e57918
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,7 @@ function load_autoload($name){
'Sitemapper' => DOKU_INC.'inc/Sitemapper.php',
'PassHash' => DOKU_INC.'inc/PassHash.class.php',
'RemoteAPI' => DOKU_INC.'inc/remote.php',
'RemoteAPICore' => DOKU_INC.'inc/RemoteAPICore.php',
'DokuWiki_Action_Plugin' => DOKU_PLUGIN.'action.php',
'DokuWiki_Admin_Plugin' => DOKU_PLUGIN.'admin.php',
......
<?php
if (!defined('DOKU_INC')) die();
require_once(DOKU_INC.'inc/RemoteAPICore.php');
class RemoteException extends Exception {}
class RemoteAccessDeniedException extends RemoteException {}
......
......@@ -2,10 +2,9 @@
if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
require_once(DOKU_INC.'inc/init.php');
require_once(DOKU_INC.'inc/remote.php');
session_write_close(); //close session
if(!$conf['xmlrpc']) die('XML-RPC server not enabled.');
if(!$conf['remote']) die('XML-RPC server not enabled.');
/**
* Contains needed wrapper functions and registers all available
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment