load('rest_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.'); $rest_handler = new ISPConfigRESTHandler(); $rest_handler->run(); ?>