mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
A few small random changes
This commit is contained in:
parent
9c1ca50d7c
commit
ad1bddfcf7
@ -96,6 +96,7 @@
|
||||
|
||||
}
|
||||
|
||||
$t->set_var("hidden_vars",$phpgw->form_sessionid());
|
||||
$t->set_var("actionurl",$phpgw->link("newaccount.php"));
|
||||
$t->set_var("lang_add",lang_common("add"));
|
||||
$t->set_var("lang_search",lang_common("search"));
|
||||
|
10
login.php
10
login.php
@ -31,7 +31,6 @@
|
||||
|
||||
// When I am updating my server, I don't want people logging in a messing
|
||||
// things up.
|
||||
|
||||
function deny_login()
|
||||
{
|
||||
global $tmpl;
|
||||
@ -45,10 +44,8 @@
|
||||
function show_cookie()
|
||||
{
|
||||
global $phpgw_info, $code, $lastloginid, $login;
|
||||
if ($code != 5 && $phpgw_info["server"]["usecookies"] == True){
|
||||
if (!empty($login)) {
|
||||
SetCookie("lastloginid",$login, time() + (24 * 3600 * 14),"/");
|
||||
}
|
||||
|
||||
if ($code != 5) {
|
||||
return $lastloginid;
|
||||
}
|
||||
}
|
||||
@ -86,7 +83,7 @@
|
||||
}
|
||||
|
||||
$sessionid = $phpgw->session->create($login,$passwd);
|
||||
if (!$sessionid) {
|
||||
if (! $sessionid) {
|
||||
Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=5");
|
||||
} else {
|
||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"]) . "/", "cd=yes");
|
||||
@ -107,6 +104,7 @@
|
||||
}
|
||||
}
|
||||
$tmpl->set_var("login_url", $phpgw_info["server"]["webserver_url"] . "/login.php");
|
||||
$tmpl->set_var("website_title", $phpgw_info["server"]["site_title"]);
|
||||
$tmpl->set_var("cd",check_logoutcode($cd));
|
||||
$tmpl->set_var("cookie",show_cookie());
|
||||
$tmpl->set_var("lang_username",lang_login("username"));
|
||||
|
Loading…
Reference in New Issue
Block a user