forked from extern/egroupware
changed Header(Location:) calls to $phpgw->redirect() and made login more iis friendly
This commit is contained in:
parent
8749235bed
commit
2597b35749
@ -26,8 +26,8 @@
|
||||
|
||||
if ($cd=="yes" && $phpgw_info["user"]["preferences"]["common"]["default_app"]
|
||||
&& $phpgw_info["user"]["apps"][$phpgw_info["user"]["preferences"]["common"]["default_app"]]) {
|
||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"
|
||||
. $phpgw_info["user"]["preferences"]["common"]["default_app"]));
|
||||
$phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/"
|
||||
. $phpgw_info["user"]["preferences"]["common"]["default_app"] . "/"));
|
||||
exit;
|
||||
}
|
||||
$phpgw->common->phpgw_header();
|
||||
|
@ -13,7 +13,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$phpgw_info["flags"] = array("disable_template_class" => True, "login" => True, "currentapp" => "login", "noheader" => True);
|
||||
include("header.inc.php");
|
||||
include("./header.inc.php");
|
||||
/*
|
||||
if ($code != 10 && $phpgw_info["server"]["usecookies"] == False) {
|
||||
Setcookie("sessionid");
|
||||
@ -81,14 +81,14 @@
|
||||
|
||||
if (isset($submit) && $submit) {
|
||||
if (getenv(REQUEST_METHOD) != "POST") {
|
||||
Header("Location: ".$phpgw->link("","code=5"));
|
||||
$phpgw->redirect($phpgw->link("","code=5"));
|
||||
}
|
||||
|
||||
$sessionid = $phpgw->session->create($login,$passwd);
|
||||
if (!isset($sessionid) || !$sessionid) {
|
||||
Header("Location: ".$phpgw_info["server"]["webserver_url"]."/login.php?cd=5");
|
||||
$phpgw->redirect($phpgw_info["server"]["webserver_url"]."/login.php?cd=5");
|
||||
} else {
|
||||
Header("Location: ".$phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php", "cd=yes"));
|
||||
$phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php", "cd=yes"));
|
||||
}
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user