. 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 (!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'); 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; default: error_page("Unknown action"); } row2(tra("Reason")."
".tra("Mailed if nonempty")."", "" ); row2( "", "" ); end_table(); echo "
"; page_tail(); ?>