aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-02-26 19:53:10 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-02-26 19:53:10 +0000
commit541667f440b245535354febd18930a87c2bbbefb (patch)
tree154386a019e66e8fd89b5ac0dd218fa11e7e3d88 /phpBB/viewtopic.php
parentc3200c107f1e5b297d3c351e7ce0b8aee61a7dc7 (diff)
downloadforums-541667f440b245535354febd18930a87c2bbbefb.tar
forums-541667f440b245535354febd18930a87c2bbbefb.tar.gz
forums-541667f440b245535354febd18930a87c2bbbefb.tar.bz2
forums-541667f440b245535354febd18930a87c2bbbefb.tar.xz
forums-541667f440b245535354febd18930a87c2bbbefb.zip
some changes... mainly permission related. Please note the intval($forum_id) at viewtopic, somehow the auth class did not identified it while generating the forum rules.
git-svn-id: file:///svn/phpbb/trunk@3553 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 9193b7fe92..7471dbfe9e 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -139,13 +139,12 @@ if (!$topic_data = $db->sql_fetchrow($result))
trigger_error('NO_TOPIC');
}
extract($topic_data);
-
+$forum_id = intval($forum_id);
// Configure style, language, etc.
$user->setup(false, intval($forum_style));
$auth->acl($user->data, intval($forum_id));
-
// Start auth check
if (!$auth->acl_gets('f_read', 'm_', 'a_', intval($forum_id)))
{
@@ -258,7 +257,6 @@ if (isset($_GET['highlight']))
$s_forum_rules = '';
gen_forum_rules('topic', $forum_id);
-
// Quick mod tools
$topic_mod = '';
$topic_mod .= ($auth->acl_gets('m_lock', 'a_', $forum_id)) ? ((intval($topic_status) == ITEM_UNLOCKED) ? '<option value="lock">' . $user->lang['LOCK_TOPIC'] . '</option>' : '<option value="unlock">' . $user->lang['UNLOCK_TOPIC'] . '</option>') : '';