-
-/*
- * 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");
- wprintf("<h1>");
- wprintf(_("Enter a server command"));
- wprintf("</h1>");
- wprintf("</div>\n");
-
- wprintf("<div id=\"content\" class=\"service\">\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=\"%d\">\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"), ChrPtr(WC->Hdr->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);
-}
-
-/*
- * Interactive window to perform generic Citadel server commands.
- */
-void do_generic(void)
-{
-
- wcsession *WCC = WC;