Till Brehm
2014-08-14 9edea9976bd605071e0694a90d704266c0b7e0f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
 
require_once '../../lib/config.inc.php';
$conf['start_session'] = false;
require_once '../../lib/app.inc.php';
 
if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.');
 
$app->load('remoting,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->handle();
 
 
 
?>