. require_once('../inc/util.inc'); require_once('../inc/forum.inc'); check_get_args(array("action", "thread", "ttok", "tnow")); $logged_in_user = get_logged_in_user(); BoincForumPrefs::lookup($logged_in_user); if (DISABLE_FORUMS && !is_admin($logged_in_user)) { error_page("Forums are disabled"); } if (!get_str('action')) { error_page("unknown action"); } $thread = BoincThread::lookup_id(get_int('thread')); $forum = BoincForum::lookup_id($thread->forum); if (!is_moderator($logged_in_user, $forum)) { error_page(tra("not authorized")); } page_head(tra("Moderate thread '%1'", $thread->title)); echo "
id method=POST>\n"; echo form_tokens($logged_in_user->authenticator); start_table(); $action = get_str('action'); $get_reason = true; switch ($action) { case 'hide': case 'lock': echo ""; row2("", tra("Select the reason category, or write a longer description of why you're hiding or locking the thread; then press OK.") ); row2(tra("Category"), "" ); break; case 'move': if ($forum->parent_type != 0) error_page("Nope"); echo ""; $selectbox = '"; row2(tra("New title:"), "title)."\">" ); break; case 'delete': echo ""; echo "Are you sure you want to delete this thread and all its posts? This action cannot be undone. "; $get_reason = false; break; default: error_page("Unknown action"); } if ($get_reason) { row2(tra("Reason")."
".tra("Mailed if nonempty")."", "" ); row2( "", "" ); } end_table(); echo "
"; page_tail(); ?>