mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +01:00
minor fixes
This commit is contained in:
parent
ac3d3a229f
commit
533a3c495f
14
login.php
14
login.php
@ -22,6 +22,11 @@
|
|||||||
include($phpgw_info["server"]["include_root"] . "/lang/" . "en" . "_login.inc.php");
|
include($phpgw_info["server"]["include_root"] . "/lang/" . "en" . "_login.inc.php");
|
||||||
include($phpgw_info["server"]["api_dir"] . "/phpgw_template.inc.php");
|
include($phpgw_info["server"]["api_dir"] . "/phpgw_template.inc.php");
|
||||||
|
|
||||||
|
if ($code != 10 && $phpgw_info["server"]["usecookies"] == False) {
|
||||||
|
Setcookie("sessionid");
|
||||||
|
Setcookie("kp3");
|
||||||
|
}
|
||||||
|
|
||||||
$deny_login = False;
|
$deny_login = False;
|
||||||
|
|
||||||
$tmpl = new Template($phpgw_info["server"]["template_dir"]);
|
$tmpl = new Template($phpgw_info["server"]["template_dir"]);
|
||||||
@ -44,9 +49,12 @@
|
|||||||
function show_cookie()
|
function show_cookie()
|
||||||
{
|
{
|
||||||
global $phpgw_info, $code, $lastloginid, $login;
|
global $phpgw_info, $code, $lastloginid, $login;
|
||||||
|
/* This needs to be this way, because if someone doesnt want to use cookies, we shouldnt sneak one in */
|
||||||
if ($code != 5) {
|
if ($code != 5 && $phpgw_info["server"]["usecookies"] == True){
|
||||||
return $lastloginid;
|
if (!empty($login)) {
|
||||||
|
SetCookie("lastloginid",$login, time() + (24 * 3600 * 14),"/");
|
||||||
|
}
|
||||||
|
return $lastloginid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user