-/**
- * \brief display the screen to enter a private room
- */
-void display_private(char *rname, int req_pass)
-{
- WCTemplputParams SubTP;
- StrBuf *Buf;
- output_headers(1, 1, 1, 0, 0, 0);
-
- Buf = NewStrBufPlain(_("Go to a hidden room"), -1);
- memset(&SubTP, 0, sizeof(WCTemplputParams));
- SubTP.Filter.ContextType = CTX_STRBUF;
- SubTP.Context = Buf;
- DoTemplate(HKEY("beginbox"), NULL, &SubTP);
-
- FreeStrBuf(&Buf);
-
- wc_printf("<p>");
- wc_printf(_("If you know the name of a hidden (guess-name) or "
- "passworded room, you can enter that room by typing "
- "its name below. Once you gain access to a private "
- "room, it will appear in your regular room listings "
- "so you don't have to keep returning here."));
- wc_printf("</p>");
-
- wc_printf("<form method=\"post\" action=\"goto_private\">\n");
- wc_printf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
-
- wc_printf("<table class=\"altern\"> "
- "<tr class=\"even\"><td>");
- wc_printf(_("Enter room name:"));
- wc_printf("</td><td>"
- "<input type=\"text\" name=\"gr_name\" "
- "value=\"%s\" maxlength=\"128\">\n", rname);
-
- if (req_pass) {
- wc_printf("</td></tr><tr class=\"odd\"><td>");
- wc_printf(_("Enter room password:"));
- wc_printf("</td><td>");
- wc_printf("<input type=\"password\" name=\"gr_pass\" maxlength=\"9\">\n");
- }
- wc_printf("</td></tr></table>\n");
-
- wc_printf("<div class=\"buttons\">\n");
- wc_printf("<input type=\"submit\" name=\"ok_button\" value=\"%s\">"
- " "
- "<input type=\"submit\" name=\"cancel_button\" value=\"%s\">",
- _("Go there"),
- _("Cancel")
- );
- wc_printf("</div></form>\n");
-
- do_template("endbox", NULL);
-
- wDumpContent(1);
-}
-