forked from extern/egroupware
The caching of the phpgw_info array now works on or off ...
This commit is contained in:
parent
2ebd03ec7d
commit
29baf10107
@ -99,6 +99,15 @@
|
|||||||
$db->next_record(); */
|
$db->next_record(); */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$login_array = explode("@", $db->f("session_lid"));
|
||||||
|
$this->account_lid = $login_array[0];
|
||||||
|
|
||||||
|
if ($login_array[1]!="") {
|
||||||
|
$this->account_domain = $login_array[1];
|
||||||
|
} else {
|
||||||
|
$this->account_domain = $phpgw_info["server"]["default_domain"];
|
||||||
|
}
|
||||||
|
|
||||||
$phpgw_info["user"]["kp3"] = $this->kp3;
|
$phpgw_info["user"]["kp3"] = $this->kp3;
|
||||||
$phpgw_info_flags = $phpgw_info["flags"];
|
$phpgw_info_flags = $phpgw_info["flags"];
|
||||||
|
|
||||||
@ -110,13 +119,15 @@
|
|||||||
|
|
||||||
if ($this->use_cache) {
|
if ($this->use_cache) {
|
||||||
$t = $this->appsession('phpgw_info_cache','phpgwapi');
|
$t = $this->appsession('phpgw_info_cache','phpgwapi');
|
||||||
} else {
|
|
||||||
$t = $this->read_repositories();
|
|
||||||
}
|
|
||||||
|
|
||||||
$phpgw_info["server"] = $t["server"];
|
$phpgw_info["server"] = $t["server"];
|
||||||
$phpgw_info["user"] = $t["user"];
|
$phpgw_info["user"] = $t["user"];
|
||||||
$phpgw_info["hooks"] = $t["hooks"];
|
$phpgw_info["hooks"] = $t["hooks"];
|
||||||
|
} else {
|
||||||
|
$this->read_repositories();
|
||||||
|
$phpgw_info["user"] = $this->user;
|
||||||
|
$phpgw_info["hooks"] = $this->hooks;
|
||||||
|
}
|
||||||
|
|
||||||
$phpgw_info["user"]["session_ip"] = $db->f("session_ip");
|
$phpgw_info["user"]["session_ip"] = $db->f("session_ip");
|
||||||
|
|
||||||
if ($userid_array[1] != $phpgw_info["user"]["domain"]) {
|
if ($userid_array[1] != $phpgw_info["user"]["domain"]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user