- wprintf("<form method=\"POST\" action=\"editroom\">\n");
- wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
-
- wprintf("<ul><li>");
- wprintf(_("Name of room: "));
- wprintf("<input type=\"text\" NAME=\"er_name\" VALUE=\"%s\" MAXLENGTH=\"%d\">\n",
- er_name,
- (sizeof(er_name)-1)
- );
-
- wprintf("<li>");
- wprintf(_("Resides on floor: "));
- wprintf("<select NAME=\"er_floor\" SIZE=\"1\">\n");
- for (i = 0; i < 128; ++i)
- if (!IsEmptyStr(floorlist[i])) {
- wprintf("<OPTION ");
- if (i == er_floor)
- wprintf("SELECTED ");
- wprintf("VALUE=\"%d\">", i);
- escputs(floorlist[i]);
- wprintf("</OPTION>\n");
- }
- wprintf("</select>\n");
-
- wprintf("<li>");
- wprintf(_("Type of room:"));
- wprintf("<ul>\n");
-
- wprintf("<li><input type=\"radio\" NAME=\"type\" VALUE=\"public\" ");
- if ((er_flags & QR_PRIVATE) == 0)
- wprintf("CHECKED ");
- wprintf("> ");
- wprintf(_("Public (automatically appears to everyone)"));
- wprintf("\n");
-
- wprintf("<li><input type=\"radio\" NAME=\"type\" VALUE=\"hidden\" ");
- if ((er_flags & QR_PRIVATE) &&
- (er_flags & QR_GUESSNAME))
- wprintf("CHECKED ");
- wprintf("> ");
- wprintf(_("Private - hidden (accessible to anyone who knows its name)"));
-
- wprintf("\n<li><input type=\"radio\" NAME=\"type\" VALUE=\"passworded\" ");
- if ((er_flags & QR_PRIVATE) &&
- (er_flags & QR_PASSWORDED))
- wprintf("CHECKED ");
- wprintf("> ");
- wprintf(_("Private - require password: "));
- wprintf("\n<input type=\"text\" NAME=\"er_password\" VALUE=\"%s\" MAXLENGTH=\"9\">\n",
- er_password);
-
- wprintf("<li><input type=\"radio\" NAME=\"type\" VALUE=\"invonly\" ");
- if ((er_flags & QR_PRIVATE)
- && ((er_flags & QR_GUESSNAME) == 0)
- && ((er_flags & QR_PASSWORDED) == 0))
- wprintf("CHECKED ");
- wprintf("> ");
- wprintf(_("Private - invitation only"));
-
- wprintf("\n<li><input type=\"checkbox\" NAME=\"bump\" VALUE=\"yes\" ");
- wprintf("> ");
- wprintf(_("If private, cause current users to forget room"));
-
- wprintf("\n</ul>\n");
-
- wprintf("<li><input type=\"checkbox\" NAME=\"prefonly\" VALUE=\"yes\" ");
- if (er_flags & QR_PREFONLY)
- wprintf("CHECKED ");
- wprintf("> ");
- wprintf(_("Preferred users only"));
-
- wprintf("\n<li><input type=\"checkbox\" NAME=\"readonly\" VALUE=\"yes\" ");
- if (er_flags & QR_READONLY)
- wprintf("CHECKED ");
- wprintf("> ");
- wprintf(_("Read-only room"));
-
- wprintf("\n<li><input type=\"checkbox\" NAME=\"collabdel\" VALUE=\"yes\" ");
- if (er_flags2 & QR2_COLLABDEL)
- wprintf("CHECKED ");
- wprintf("> ");
- wprintf(_("All users allowed to post may also delete messages"));
-
- /** directory stuff */
- wprintf("\n<li><input type=\"checkbox\" NAME=\"directory\" VALUE=\"yes\" ");
- if (er_flags & QR_DIRECTORY)
- wprintf("CHECKED ");
- wprintf("> ");
- wprintf(_("File directory room"));
-
- wprintf("\n<ul><li>");
- wprintf(_("Directory name: "));
- wprintf("<input type=\"text\" NAME=\"er_dirname\" VALUE=\"%s\" MAXLENGTH=\"14\">\n",
- er_dirname);