mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +01:00
some small fixes from dave hall
This commit is contained in:
parent
ec9e4e621e
commit
d8692a29f7
@ -106,6 +106,26 @@
|
|||||||
|
|
||||||
function redirect_link($url = '',$extravars='')
|
function redirect_link($url = '',$extravars='')
|
||||||
{
|
{
|
||||||
|
if(@defined('PHPGW_PHPSESSID') &&
|
||||||
|
@defined('SID'))//add support for non cookie based php4 sessions
|
||||||
|
{
|
||||||
|
if(is_array($extravars))
|
||||||
|
{
|
||||||
|
list($ignore, $id) =explode('=',SID);
|
||||||
|
$extravars[PHPGW_PHPSESSID] = $id;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if($extravars)
|
||||||
|
{
|
||||||
|
$extravars .= SID;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$extravars = SID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
$this->redirect($this->session->link($url, $extravars));
|
$this->redirect($this->session->link($url, $extravars));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user