+ wprintf("<ul class=\"adminitems\">");
+
+ wprintf("<li><a href=\"select_user_to_edit\">");
+ wprintf(_("Add, change, delete user accounts"));
+ wprintf("</a></li>\n");
+
+ wprintf("<li><a href=\"validate\">");
+ wprintf(_("Validate new users"));
+ wprintf("</a></li>\n");
+
+ wprintf("</ul>");
+
+ do_template("endbox");
+
+ wprintf("</td></tr><tr><td width=50%%>");
+
+ svprintf("BOXTITLE", WCS_STRING, _("Rooms and Floors"));
+ do_template("beginbox");
+
+ wprintf("<ul class=\"adminitems\">");
+
+ wprintf("<li><a href=\"display_floorconfig\">");
+ wprintf(_("Add, change, or delete floors"));
+ wprintf("</a></li>\n");
+
+ wprintf("</ul>");
+
+ do_template("endbox");
+
+ wprintf("</td></tr></table></div>");
+ wDumpContent(2);
+}
+
+
+
+
+
+/**
+ * \brief Display the screen to enter a generic server command
+ */
+void display_generic(void)
+{
+ output_headers(1, 1, 2, 0, 0, 0);
+ wprintf("<div id=\"banner\">\n"
+ "<table class=\"mainmenu_banner\"><tr><td>"
+ "<span class=\"titlebar\">");
+ wprintf(_("Enter a server command"));
+ wprintf("</span></td></tr></table>\n"
+ "</div>\n<div id=\"content\">\n"
+ );
+
+ wprintf("<div class=\"fix_scrollbar_bug\">"
+ "<table class=\"mainmenu_background\"><tr><td>\n");
+
+ wprintf("<center>");
+ wprintf(_("This screen allows you to enter Citadel server commands which are "
+ "not supported by WebCit. If you do not know what that means, "
+ "then this screen will not be of much use to you."));
+ wprintf("<br />\n");
+
+ wprintf("<form method=\"post\" action=\"do_generic\">\n");
+ wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
+
+ wprintf(_("Enter command:"));
+ wprintf("<br /><input type=\"text\" name=\"g_cmd\" size=80 maxlength=\"250\"><br />\n");
+
+ wprintf(_("Command input (if requesting SEND_LISTING transfer mode):"));
+ wprintf("<br /><textarea name=\"g_input\" rows=10 cols=80 width=80></textarea><br />\n");
+
+ wprintf("<font size=-2>");
+ wprintf(_("Detected host header is %s://%s"), (is_https ? "https" : "http"), WC->http_host);
+ wprintf("</font>\n");
+ wprintf("<input type=\"submit\" name=\"sc_button\" value=\"%s\">", _("Send command"));
+ wprintf(" ");
+ wprintf("<input type=\"submit\" name=\"cancel_button\" value=\"%s\"><br />\n", _("Cancel"));
+
+ wprintf("</form></center>\n");
+ wprintf("</td></tr></table></div>\n");
+ wDumpContent(1);
+}
+
+/**
+ * \brief Interactive window to perform generic Citadel server commands.
+ */
+void do_generic(void)
+{
+ char buf[SIZ];
+ char gcontent[SIZ];
+ char *junk;
+ size_t len;
+
+ if (strlen(bstr("sc_button")) == 0) {
+ display_main_menu();
+ return;