getForum(); $category = $forum->getCategory(); $logged_in_user = re_get_logged_in_user(false); $title = cleanup_title($thread->getTitle()); if (!$sort_style) { // get the sorting style from the user or a cookie if ($logged_in_user){ $sort_style = $logged_in_user->getThreadSortStyle(); } else { list($forum_style, $sort_style)=explode("|",$_COOKIE['sorting']); } } else { if ($logged_in_user){ $logged_in_user->setThreadSortStyle($sort_style); } else { list($forum_style,$old_style)=explode("|",$_COOKIE['sorting']); setcookie('sorting', implode("|",array($forum_style,$sort_style)), time()+3600*24*365); } } if ($logged_in_user && $logged_in_user->hasJumpToUnread()){ page_head($title, 'jumpToUnread();'); echo "id."\" rel=\"up\" title=\"".$forum->getTitle()."\">"; } else { page_head($title); echo "id."\" rel=\"up\" title=\"".$forum->getTitle()."\">"; } $is_subscribed = $logged_in_user && $thread->isSubscribed($logged_in_user); show_forum_title($forum, $thread); if (($thread->isHidden()) && $logged_in_user && (!$logged_in_user->isSpecialUser(S_MODERATOR))) { /* If the user logged in is a moderator, show him the * thread if he goes so far as to name it by ID like this. * Otherwise, hide the thread. */ error_page(tr(FORUM_THREAD_HIDDEN)); } else { if ($thread->getType()!=0 && $thread->getStatus()==0){ $thread_owner = $thread->getOwner(); if ($logged_in_user){ if ($thread_owner->getID() == $logged_in_user->getID()){ if ($thread->getPostCount()==0){} else { // Show a "this question has been answered" to the author echo "
".$reply_text; show_forum_title($forum, $thread); $thread->incViews(); } page_tail(); ?>