output some usefull informations

This commit is contained in:
Lars Kneschke 2006-04-07 11:51:57 +00:00
parent 1d791acb2f
commit 9601390322

20
rpc.php
View File

@ -30,15 +30,13 @@ if($GLOBALS['egw_info']['server']['sessions_type'] == 'db')
exit; exit;
} }
if(ini_get('mbstring.func_overload') != 0) if(ini_get('mbstring.func_overload') != 0) {
{ error_log('You need to set mbstring.func_overload to 0 for rpc.php.');
error_log('You need to disable mbstring.func_overload for rpc.php.');
exit; exit;
} }
if(version_compare(PHP_VERSION, '5.0.0') < 0) if(version_compare(PHP_VERSION, '5.0.0') < 0) {
{ error_log('eGroupWare\'s SyncML server requires PHP5. Please update to PHP5 if you want to make use of SyncML.');
error_log('SyncML requires PHP5. Please update to PHP5 if you want to make use of SyncML.');
exit; exit;
} }
@ -74,7 +72,15 @@ if (!empty($_SERVER['CONTENT_TYPE'])) {
} }
if($serverType != 'syncml' && $serverType != 'syncml_wbxml') { if($serverType != 'syncml' && $serverType != 'syncml_wbxml') {
die('You can access this URL only with a SyncML enabled device.'); if(ini_get('mbstring.func_overload') != 0) {
echo 'You need to set mbstring.func_overload to 0 for rpc.php.<br>';
}
if(version_compare(PHP_VERSION, '5.0.0') < 0) {
echo 'eGroupWare\'s SyncML server requires PHP5. Please update to PHP5 if you want to make use of SyncML.<br>';
}
die('You should access this URL only with a SyncML enabled device.');
} }
if ($serverType == 'soap' && if ($serverType == 'soap' &&