From 9f651601a31578b7bfb59f445483863d567a4d95 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 22 Mar 2002 22:27:10 +0000 Subject: [PATCH] Redirect to login header change for IIS/Webstart git-svn-id: file:///svn/phpbb/trunk@2410 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewforum.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index cea4c5b796..d3716e2401 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -103,7 +103,8 @@ if ( !$is_auth['auth_read'] || !$is_auth['auth_view'] ) if ( !$userdata['session_logged_in'] ) { $redirect = POST_FORUM_URL . "=$forum_id" . ( ( isset($start) ) ? "&start=$start" : "" ); - header("Location: " . append_sid("login.$phpEx?redirect=viewforum.$phpEx&$redirect", true)); + $header_location = ( @preg_match("/Microsoft|WebSTAR/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: "; + header($header_location . append_sid("login.$phpEx?redirect=viewforum.$phpEx&$redirect", true)); } // // The user is not authed to read this forum ... @@ -189,7 +190,6 @@ $sql = "SELECT u.user_id, u.username WHERE aa.forum_id = $forum_id AND aa.auth_mod = " . TRUE . " AND g.group_single_user = 1 - AND g.group_type <> ". GROUP_HIDDEN ." AND ug.group_id = aa.group_id AND g.group_id = aa.group_id AND u.user_id = ug.user_id @@ -378,7 +378,7 @@ if ( $is_auth['auth_mod'] ) // Mozilla navigation bar // $nav_links['up'] = array( - 'url' => append_sid("index.".$phpEx), + 'url' => append_sid('index.'.$phpEx), 'title' => sprintf($lang['Forum_Index'], $board_config['sitename']) );