Code: Select all
?php /** * * @package phpBB3 * @version $Id: viewtopic.php,v 1.513 2007/11/06 00:05:53 kellanved Exp $ * @copyright (c) 2005 phpBB Group * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * @ignore */ define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); include($phpbb_root_path . 'includes/functions_display.' . $phpEx); include($phpbb_root_path . 'includes/bbcode.' . $phpEx); // char-in-profile include_once($phpbb_root_path . 'includes/functions_content.' . $phpEx); // char-in-profile-off // Start session management $user->session_begin(); $auth->acl($user->data); // Initial var setup $forum_id = request_var('f', 0); $topic_id = request_var('t', 0); $post_id = request_var('p', 0); $voted_id = request_var('vote_id', array('' => 0)); $start = request_var('start', 0); $view = request_var('view', ''); $sort_days = request_var('st', ((!empty($user->data['user_post_show_days'])) ?