forked from extern/egroupware
added check for PHP version >= 5.0.0 and mbstring.func_overload == 0
This commit is contained in:
parent
4794146748
commit
8941ccbc23
13
rpc.php
13
rpc.php
@ -30,6 +30,18 @@ if($GLOBALS['egw_info']['server']['sessions_type'] == 'db')
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(ini_get('mbstring.func_overload') != 0)
|
||||||
|
{
|
||||||
|
error_log('You need to disable mbstring.func_overload for rpc.php.');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(version_compare(PHP_VERSION, '5.0.0') < 0)
|
||||||
|
{
|
||||||
|
error_log('SyncML requires PHP5. Please update to PHP5 if you want to make use of SyncML.');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
$config =& CreateObject('phpgwapi.config','syncml');
|
$config =& CreateObject('phpgwapi.config','syncml');
|
||||||
$config->read_repository();
|
$config->read_repository();
|
||||||
$GLOBALS['config_syncml'] =& $config->config_data;
|
$GLOBALS['config_syncml'] =& $config->config_data;
|
||||||
@ -92,6 +104,7 @@ $server->authorize();
|
|||||||
if ($input === null) {
|
if ($input === null) {
|
||||||
$input = $server->getInput();
|
$input = $server->getInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
$out = $server->getResponse($input, $params);
|
$out = $server->getResponse($input, $params);
|
||||||
|
|
||||||
/* Return the response to the client. */
|
/* Return the response to the client. */
|
||||||
|
Loading…
Reference in New Issue
Block a user