. require_once('../inc/forum.inc'); $logged_in_user = get_logged_in_user(); BoincForumPrefs::lookup($logged_in_user); if (!get_str('action')) { error_page("no action"); } $thread = BoincThread::lookup_id(get_int('thread')); $forum = BoincForum::lookup_id($thread->forum); if (!is_moderator($logged_in_user, $forum)) { error_page("not authorized"); } page_head("Moderate thread '$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("", "Select the reason category, or write a longer description of why you're hiding or locking the thread; then press OK." ); row2("Category", "" ); break; case 'move': if ($forum->parent_type != 0) error_page("Nope"); echo ""; $selectbox = '"; row2("New title:", "title)."\">" ); break; default: error_page("Unknown action"); } row2("Reason
Mailed if nonempty", "" ); row2( "", "" ); end_table(); echo "
"; page_tail(); ?>