Florian Schaal
2016-05-26 52a8e7e2f53b23f41b40aa5bc5b35f338aaec3dd
interface/web/remote/index.php
@@ -6,7 +6,10 @@
if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.');
$app->load('soap_handler');
$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->setObject(new ISPConfigSoapHandler());