Till Brehm
2016-06-14 855cf2aaeb5e4cd43f4f0e6f79a66e0ab6fbebcf
interface/web/remote/index.php
@@ -6,16 +6,13 @@
if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.');
$app->load('remoting,getconf');
$app->load('soap_handler,getconf');
$security_config = $app->getconf->get_security_config('permissions');
if($security_config['remote_api_allowed'] != 'yes') die('Remote API is disabled in security settings.');
$server = new SoapServer(null, array('uri' => $_SERVER['REQUEST_URI']));
$server->setClass('remoting');
$server->setObject(new ISPConfigSoapHandler());
$server->handle();
?>