Till Brehm
2014-08-14 9edea9976bd605071e0694a90d704266c0b7e0f9
commit | author | age
412aa4 1 <?php
T 2
7fe908 3 require_once '../../lib/config.inc.php';
412aa4 4 $conf['start_session'] = false;
7fe908 5 require_once '../../lib/app.inc.php';
412aa4 6
91624b 7 if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.');
T 8
9edea9 9 $app->load('remoting,getconf');
TB 10
11 $security_config = $app->getconf->get_security_config('permissions');
12 if($security_config['remote_api_allowed'] != 'yes') die('Remote API is disabled in security settings.');
13
412aa4 14
T 15 $server = new SoapServer(null, array('uri' => $_SERVER['REQUEST_URI']));
16 $server->setClass('remoting');
17 $server->handle();
18
19
20
7fe908 21 ?>