function handle_cancel_confirm($user) { $destid = get_int('userid'); $destuser = BoincUser::lookup_id($destid); if (!$destuser) { error_page(tra("No such user")); } page_head(tra("Cancel friendship?")); echo tra("Are you sure you want to cancel your friendship with %1?", $destuser->name) . "\n\t\t<p>\n\t<ul class=\"actionlist\">"; show_actionlist_button("friend.php?action=cancel&userid={$destid}", tra("Yes"), tra("Cancel friendship")); show_actionlist_button("home.php", tra("No"), tra("Stay friends")); echo "</ul>"; page_tail(); }
show_actionlist_button("forum_moderate_thread.php?action=hide&thread=" . $thread->id, tra("Hide"), tra("Hide this thread")); } if ($thread->sticky) { show_actionlist_button("forum_moderate_thread_action.php?action=desticky&thread=" . $thread->id . "{$tokens}", tra("Make unsticky"), tra("Make this thread not sticky")); } else { show_actionlist_button("forum_moderate_thread_action.php?action=sticky&thread=" . $thread->id . "{$tokens}", tra("Make sticky"), tra("Make this thread sticky")); } if ($thread->locked) { show_actionlist_button("forum_moderate_thread_action.php?action=unlock&thread=" . $thread->id . "{$tokens}", tra("Unlock"), tra("Unlock this thread")); } else { show_actionlist_button("forum_moderate_thread.php?action=lock&thread=" . $thread->id . "{$tokens}", tra("Lock"), tra("Lock this thread")); } if ($forum->parent_type == 0) { show_actionlist_button("forum_moderate_thread.php?action=move&thread=" . $thread->id . "{$tokens}", tra("Move"), tra("Move this thread to a different forum")); } show_actionlist_button("forum_moderate_thread.php?action=title&thread=" . $thread->id . "{$tokens}", tra("Edit title"), tra("Edit thread title")); } echo "</ul>"; //End of action list // Display a box that allows the user to select sorting of the posts echo "</td><td align=\"right\">\r\n\t<input type=\"hidden\" name=\"id\" value=\"", $thread->id, "\">" . tra("Sort"); echo select_from_array("sort", $thread_sort_styles, $sort_style); echo "<input type=\"submit\" value=\"Sort\">\r\n\t</td></tr></table></form>\r\n"; // Here is where the actual thread begins. $headings = array(array(tra("Author"), "authorcol"), array(tra("Message"), "")); start_forum_table($headings, "id=\"thread\" width=100%"); show_posts($thread, $forum, $sort_style, $filter, $logged_in_user, true); end_table(); if ($reply_url) { show_button($reply_url, tra("Post to thread"), tra("Add a new message to this thread")); }