changed Header(Location:) calls to $phpgw->redirect() and made login more iis friendly

This commit is contained in:
pjw 2000-11-29 18:32:56 +00:00
parent 8749235bed
commit 2597b35749
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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 {