aboutsummaryrefslogtreecommitdiff
path: root/lib/xmlrpc.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xmlrpc.php')
-rw-r--r--lib/xmlrpc.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/xmlrpc.php b/lib/xmlrpc.php
index 51e1be2..985d0f1 100644
--- a/lib/xmlrpc.php
+++ b/lib/xmlrpc.php
@@ -3,11 +3,9 @@
$request_xml = file_get_contents("php://input");
// check prerequisites
-if(!function_exists('xmlrpc_server_create')) { exit('No XML-RPC support detected!'); }
+if(!$config['xmlrpc']) { exit('No XML-RPC support detected!'); }
if(empty($request_xml)) { exit('XML-RPC server accepts POST requests only.'); }
-// load config
-require_once(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'config.php');
$logfile = ROOT.DS.'log.txt';
if(!function_exists('str_starts_with')) {