diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-22 22:27:10 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-22 22:27:10 +0000 |
| commit | 9f651601a31578b7bfb59f445483863d567a4d95 (patch) | |
| tree | c4611a6cff038263bc5a29d4d7db317484430040 /phpBB/viewforum.php | |
| parent | 0c75c25d910fbf1334b6c8ca0d5d770c93b67a15 (diff) | |
| download | forums-9f651601a31578b7bfb59f445483863d567a4d95.tar forums-9f651601a31578b7bfb59f445483863d567a4d95.tar.gz forums-9f651601a31578b7bfb59f445483863d567a4d95.tar.bz2 forums-9f651601a31578b7bfb59f445483863d567a4d95.tar.xz forums-9f651601a31578b7bfb59f445483863d567a4d95.zip | |
Redirect to login header change for IIS/Webstart
git-svn-id: file:///svn/phpbb/trunk@2410 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
| -rw-r--r-- | phpBB/viewforum.php | 6 |
1 files 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']) ); |
