2) { $filter_min = -2; } $thread = getThread($_GET['id']); $thread->incView(); $forum = getForum($thread->forum); // TODO: Make these more specific. if ($forum->is_helpdesk) { doHeader('Help Desk'); $sort_style = 'rating-high'; } else { doHeader('Forum'); } // TODO: Constant for default sort style and filter values. if ($sort_style == NULL) { $sort_style = "date-old"; } $logged_in_user = get_logged_in_user(false); $is_subscribed = false; if ($logged_in_user) { $result = sql_query("SELECT * FROM subscriptions WHERE (userid = " . $logged_in_user->id . ") AND (threadid = " . $thread->id . ")"); if ($result) { $is_subscribed = (sql_num_rows($result) > 0); } } ?>
Author | is_helpdesk) { echo "Question | "; } else { echo "Message | "; } ?>
---|
id;
if ($forum->is_helpdesk) {
$link = $link . "&helpdesk=1#input>Answer this question";
} else {
$link = $link . "#input>Reply to this thread";
}
echo $link, "
";
?>