diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-07-14 14:43:31 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-07-14 14:43:31 +0000 |
| commit | d03de47b51173dac761e4fdf6e7004661a5565ac (patch) | |
| tree | 1a066dd0a714ca000fe009a1a9a298a3cf264e79 /phpBB/includes/topic_review.php | |
| parent | c4a926b4e201380a45e0c4ebe76fba49fa6b42f1 (diff) | |
| download | forums-d03de47b51173dac761e4fdf6e7004661a5565ac.tar forums-d03de47b51173dac761e4fdf6e7004661a5565ac.tar.gz forums-d03de47b51173dac761e4fdf6e7004661a5565ac.tar.bz2 forums-d03de47b51173dac761e4fdf6e7004661a5565ac.tar.xz forums-d03de47b51173dac761e4fdf6e7004661a5565ac.zip | |
Gone but not forgotten ... what's not forgotten? who said that? shut up Paul
git-svn-id: file:///svn/phpbb/trunk@2672 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/topic_review.php')
| -rw-r--r-- | phpBB/includes/topic_review.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/phpBB/includes/topic_review.php b/phpBB/includes/topic_review.php index bc4d0b05e4..6fc0a79592 100644 --- a/phpBB/includes/topic_review.php +++ b/phpBB/includes/topic_review.php @@ -23,7 +23,7 @@ function topic_review($topic_id, $is_inline_review) { - global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; + global $SID, $session, $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; global $userdata, $user_ip; global $orig_word, $replacement_word; global $starttime; @@ -58,16 +58,13 @@ function topic_review($topic_id, $is_inline_review) // // Start session management // - $userdata = session_pagestart($user_ip, $forum_id); - init_userprefs($userdata); + $userdata = $session->start(); + $acl = new auth($userdata); // // End session management // - $is_auth = array(); - $is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_row); - - if ( !$is_auth['auth_read'] ) + if ( !$acl->get_acl($forum_id, 'forum', 'list') || !$acl->get_acl($forum_id, 'forum', 'read') ) { message_die(GENERAL_MESSAGE, sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type'])); } @@ -154,7 +151,7 @@ function topic_review($topic_id, $is_inline_review) $message = preg_replace('#(<)([\/]?.*?)(>)#is', '<\2>', $message); } - if ( $bbcode_uid != "" ) + if ( $bbcode_uid != '' ) { $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message); } |
