-
-/*
- * Display the screen to enter a generic server command
- */
-void display_generic(void)
-{
- output_headers(1, 1, 2, 0, 0, 0);
- wc_printf("<div id=\"banner\">\n");
- wc_printf("<h1>");
- wc_printf(_("Enter a server command"));
- wc_printf("</h1>");
- wc_printf("</div>\n");
-
- wc_printf("<div id=\"content\" class=\"service\">\n");
-
- wc_printf("<div class=\"fix_scrollbar_bug\">"
- "<table class=\"mainmenu_background\"><tr><td>\n");
-
- wc_printf("<center>");
- wc_printf(_("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."));
- wc_printf("<br />\n");
-
- wc_printf("<form method=\"post\" action=\"do_generic\">\n");
- wc_printf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
-
- wc_printf(_("Enter command:"));
- wc_printf("<br /><input type=\"text\" name=\"g_cmd\" size=80 maxlength=\"250\"><br />\n");
-
- wc_printf(_("Command input (if requesting SEND_LISTING transfer mode):"));
- wc_printf("<br /><textarea name=\"g_input\" rows=10 cols=80 width=80></textarea><br />\n");
-
- wc_printf("<font size=-2>");
- wc_printf(_("Detected host header is %s://%s"), (is_https ? "https" : "http"), ChrPtr(WC->Hdr->HR.http_host));
- wc_printf("</font>\n");
- wc_printf("<input type=\"submit\" name=\"sc_button\" value=\"%s\">", _("Send command"));
- wc_printf(" ");
- wc_printf("<input type=\"submit\" name=\"cancel_button\" value=\"%s\"><br />\n", _("Cancel"));
-
- wc_printf("</form></center>\n");
- wc_printf("</td></tr></table></div>\n");
- wDumpContent(1);
-}
-
-/*
- * Interactive window to perform generic Citadel server commands.
- */
-void do_generic(void)
-{
-
- wcsession *WCC = WC;