mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
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"]
|
if ($cd=="yes" && $phpgw_info["user"]["preferences"]["common"]["default_app"]
|
||||||
&& $phpgw_info["user"]["apps"][$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->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/"
|
||||||
. $phpgw_info["user"]["preferences"]["common"]["default_app"]));
|
. $phpgw_info["user"]["preferences"]["common"]["default_app"] . "/"));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$phpgw->common->phpgw_header();
|
$phpgw->common->phpgw_header();
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
$phpgw_info["flags"] = array("disable_template_class" => True, "login" => True, "currentapp" => "login", "noheader" => True);
|
$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) {
|
if ($code != 10 && $phpgw_info["server"]["usecookies"] == False) {
|
||||||
Setcookie("sessionid");
|
Setcookie("sessionid");
|
||||||
@ -81,14 +81,14 @@
|
|||||||
|
|
||||||
if (isset($submit) && $submit) {
|
if (isset($submit) && $submit) {
|
||||||
if (getenv(REQUEST_METHOD) != "POST") {
|
if (getenv(REQUEST_METHOD) != "POST") {
|
||||||
Header("Location: ".$phpgw->link("","code=5"));
|
$phpgw->redirect($phpgw->link("","code=5"));
|
||||||
}
|
}
|
||||||
|
|
||||||
$sessionid = $phpgw->session->create($login,$passwd);
|
$sessionid = $phpgw->session->create($login,$passwd);
|
||||||
if (!isset($sessionid) || !$sessionid) {
|
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 {
|
} 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 {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user