incView(); $forum = getForum($thread->forum); $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); } } ?>

title ?>
Forum -> title ?>

id ?>#input>Reply to this thread
id>Click here to unsubscribe."; } else { echo "id>Subscribe to this thread"; } ?>

Author Message