diff --git a/calendar/freebusy.php b/calendar/freebusy.php index a6ef400b4e..e738d55a0e 100644 --- a/calendar/freebusy.php +++ b/calendar/freebusy.php @@ -12,7 +12,7 @@ /* $Id$ */ - $GLOBALS['phpgw_info'] = array( + $GLOBALS['egw_info'] = array( 'flags' => array( 'currentapp' => 'calendar', 'noheader' => True, @@ -20,46 +20,51 @@ ), ); // check if we are loged in, by checking sessionid and kp3, as the sessionid get set automaticaly by php for php4-sessions - $sessionid = isset($_COOKIE['sessionid']) ? $_COOKIE['sessionid'] : @$_GET['sessionid']; - $kp3 = isset($_COOKIE['kp3']) ? $_COOKIE['kp3'] : @$_GET['kp3']; - - if (!($loged_in = $sessionid && $kp3)) + if (!($loged_in = @$_REQUEST['sessionid'] && @$_REQUEST['kp3'])) { - $GLOBALS['phpgw_info']['flags']['currentapp'] = 'login'; - $GLOBALS['phpgw_info']['flags']['noapi'] = True; + $GLOBALS['egw_info']['flags']['currentapp'] = 'login'; + $GLOBALS['egw_info']['flags']['noapi'] = True; } include ('../header.inc.php'); function fail_exit($msg) { echo "\n
\n