aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-03-17 00:53:38 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-03-17 00:53:38 +0000
commite975227cffd51f6243891f679ee301edf0941907 (patch)
tree5a799d358969e3c11ba0aa5e22bd3835c8792478 /phpBB/viewforum.php
parent391c4bff08bccfb8eb7304a64ff79d763657f1c4 (diff)
downloadforums-e975227cffd51f6243891f679ee301edf0941907.tar
forums-e975227cffd51f6243891f679ee301edf0941907.tar.gz
forums-e975227cffd51f6243891f679ee301edf0941907.tar.bz2
forums-e975227cffd51f6243891f679ee301edf0941907.tar.xz
forums-e975227cffd51f6243891f679ee301edf0941907.zip
Moved login procedure to a function enabling "inline" login links ... no more "messy" redirects ... install will be broken for now, at least when it comes to redirecting after completion. Moved "front-end" login to ucp.php
git-svn-id: file:///svn/phpbb/trunk@3650 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index ddf47d078b..4b117c924b 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -103,12 +103,12 @@ $auth->acl($user->data, $forum_id);
// Permissions check
if (!$auth->acl_gets('f_read', 'm_', 'a_', $forum_id))
{
- if ($user->data['user_id'] == ANONYMOUS)
+ if ($user->data['user_id'] != ANONYMOUS)
{
- redirect("login.$phpEx$SID&redirect=viewforum.$phpEx&f=$forum_id" . ((isset($start)) ? "&start=$start" : ''));
+ trigger_error('SORRY_AUTH_READ');
}
- trigger_error('SORRY_AUTH_READ');
+ login_box(preg_replace('#.*?([a-z]+?\.' . $phpEx . '.*?)$#i', '\1', htmlspecialchars($_SERVER['REQUEST_URI'])), '', $user->lang['LOGIN_VIEWFORUM']);
}