A few small random changes

This commit is contained in:
jengo 2000-09-03 23:22:14 +00:00
parent 9c1ca50d7c
commit ad1bddfcf7
2 changed files with 19 additions and 20 deletions

View File

@ -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"));

View File

@ -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"));