Florian Schaal
2016-04-30 8beb039f0b7d23b03f7963c3a56c8dde65af3b6b
interface/web/remote/index.php
@@ -6,12 +6,13 @@
if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.');
$app->load('remoting');
$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();
?>