SyncML is working with PHP sessions only

This commit is contained in:
Lars Kneschke 2005-12-23 07:00:30 +00:00
parent 8d704fe5c0
commit ba3ec700c9

14
rpc.php
View File

@ -16,12 +16,20 @@ require_once 'Horde/RPC.php';
$GLOBALS['egw_info'] = array();
$GLOBALS['egw_info']['flags'] = array(
'currentapp' => 'login',
'noheader' => True,
'disable_Template_class' => True
'currentapp' => 'login',
'noheader' => True,
'nonavbar' => True,
'disable_Template_class' => True
);
include('./header.inc.php');
// SyncML works currently only with PHP sessions
if($GLOBALS['egw_info']['server']['sessions_type'] == 'db')
{
error_log('SyncML support is not available with DB sessions. Please switch to PHP4 sessions in header.inc.php.');
exit;
}
/* Look at the Content-type of the request, if it is available, to try
* and determine what kind of request this is. */