From 9601390322ca237ed40628a996ac2bca922c2d0d Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 7 Apr 2006 11:51:57 +0000 Subject: [PATCH] output some usefull informations --- rpc.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/rpc.php b/rpc.php index 1f653dee8c..90ad734cb6 100644 --- a/rpc.php +++ b/rpc.php @@ -30,15 +30,13 @@ if($GLOBALS['egw_info']['server']['sessions_type'] == 'db') exit; } -if(ini_get('mbstring.func_overload') != 0) -{ - error_log('You need to disable mbstring.func_overload for rpc.php.'); +if(ini_get('mbstring.func_overload') != 0) { + error_log('You need to set mbstring.func_overload to 0 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.'); +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.'); exit; } @@ -74,7 +72,15 @@ if (!empty($_SERVER['CONTENT_TYPE'])) { } 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.
'; + } + + 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.
'; + } + + die('You should access this URL only with a SyncML enabled device.'); } if ($serverType == 'soap' &&