From 369189806bf4bf85fe0409e6f66919ab4f4b70cd Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Wed, 9 Oct 2002 19:50:48 +0000 Subject: Added the redirect() function for nice and clean redirection. git-svn-id: file:///svn/phpbb/trunk@2948 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewforum.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'phpBB/viewforum.php') diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 14b2454996..b84fac6855 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -76,10 +76,7 @@ if (!$auth->acl_get('f_read', $forum_id)) { if ( !$userdata['user_id'] ) { - $redirect = "f=$forum_id" . ( ( isset($start) ) ? "&start=$start" : '' ); - $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: '; - header($header_location . "login.$phpEx$SID&redirect=viewforum.$phpEx&$redirect"); - exit; + redirect("login.$phpEx$SID&redirect=viewforum.$phpEx&f=$forum_id" . ((isset($start)) ? "&start=$start" : '')); } // The user is not authed to read this forum ... @@ -87,7 +84,7 @@ if (!$auth->acl_get('f_read', $forum_id)) } // End of auth check -// Build subforum if applicable +// Build subforums list if applicable $type = 'parent'; $forum_rows = array(); -- cgit v1.2.1