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); } } ?>
id ?>> is_helpdesk) { ?>

title ?>
Forum -> title ?>

id; if ($forum->is_helpdesk) { $link = $link . "&helpdesk=1#input>Answer this question"; } else { $link = $link . "#input>Reply to this thread"; } echo $link, "
"; ?> is_helpdesk) { echo "You are currently subscribed to this question. "; } else { echo "You are currently subscribed to this thread. "; } echo "id>Click here to unsubscribe."; } else { if ($forum->is_helpdesk) { echo "id>Subscribe to this question"; } else { echo "id>Subscribe to this thread"; } } ?>
Sort / Filter

is_helpdesk) { echo ""; } else { echo ""; } ?> is_helpdesk) ?>
Author QuestionMessage

id; if ($forum->is_helpdesk) { $link = $link . "&helpdesk=1#input>Answer this question"; } else { $link = $link . "#input>Reply to this thread"; } echo $link, "
"; ?>