mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
moved session stuff from squirrelmail to teh api
This commit is contained in:
parent
ed50495e1a
commit
a835a9b1e6
@ -35,6 +35,7 @@
|
|||||||
var $data;
|
var $data;
|
||||||
var $db;
|
var $db;
|
||||||
var $db2;
|
var $db2;
|
||||||
|
var $variableNames;
|
||||||
|
|
||||||
/*************************************************************************\
|
/*************************************************************************\
|
||||||
* Constructor just loads up some defaults from cookies *
|
* Constructor just loads up some defaults from cookies *
|
||||||
@ -47,6 +48,8 @@
|
|||||||
$this->db2 = $phpgw->db;
|
$this->db2 = $phpgw->db;
|
||||||
$this->sessionid = $sessionid;
|
$this->sessionid = $sessionid;
|
||||||
$this->kp3 = $kp3;
|
$this->kp3 = $kp3;
|
||||||
|
// this want work because of crypto not ready at this point
|
||||||
|
#$this->restore();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************\
|
/*************************************************************************\
|
||||||
@ -418,22 +421,22 @@
|
|||||||
function save()
|
function save()
|
||||||
{
|
{
|
||||||
global $phpgw;
|
global $phpgw;
|
||||||
|
|
||||||
if (is_array($this->variableNames))
|
if (is_array($this->variableNames))
|
||||||
{
|
{
|
||||||
reset($this->variableNames);
|
reset($this->variableNames);
|
||||||
while(list($key, $value) = each($this->variableNames))
|
while(list($key, $value) = each($this->variableNames))
|
||||||
{
|
{
|
||||||
if ($value == 'registered')
|
if ($value == "registered")
|
||||||
{
|
{
|
||||||
global $$key;
|
global $$key;
|
||||||
$sessionData[$key] = $$key;
|
$sessionData[$key] = $$key;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->appsession($sessionData);
|
$this->appsession('session','',$sessionData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// create a list a variable names, wich data need's to be restored
|
// create a list a variable names, wich data need's to be restored
|
||||||
function register($_variableName)
|
function register($_variableName)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user