aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2002-10-09 19:50:48 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2002-10-09 19:50:48 +0000
commit369189806bf4bf85fe0409e6f66919ab4f4b70cd (patch)
tree988680c7700c818b42e2170a9d7d887efa3c812b /phpBB/viewforum.php
parentac4b54ff4dea78aaeec015685b1c02a66449f1f1 (diff)
downloadforums-369189806bf4bf85fe0409e6f66919ab4f4b70cd.tar
forums-369189806bf4bf85fe0409e6f66919ab4f4b70cd.tar.gz
forums-369189806bf4bf85fe0409e6f66919ab4f4b70cd.tar.bz2
forums-369189806bf4bf85fe0409e6f66919ab4f4b70cd.tar.xz
forums-369189806bf4bf85fe0409e6f66919ab4f4b70cd.zip
Added the redirect() function for nice and clean redirection.
git-svn-id: file:///svn/phpbb/trunk@2948 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php7
1 files changed, 2 insertions, 5 deletions
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();