From 2597b357494106f098def598313168c37e339cb0 Mon Sep 17 00:00:00 2001 From: pjw Date: Wed, 29 Nov 2000 18:32:56 +0000 Subject: [PATCH] changed Header(Location:) calls to $phpgw->redirect() and made login more iis friendly --- index.php | 4 ++-- login.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 87dea10cf3..9c19015b7d 100755 --- a/index.php +++ b/index.php @@ -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(); diff --git a/login.php b/login.php index 572c384009..02f12e3944 100755 --- a/login.php +++ b/login.php @@ -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 {