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(_("Detected host header is %s://%s"), (is_https ? "https" : "http"), ChrPtr(WC->Hdr->HR.http_host));
wprintf("</font>\n");
wprintf("<input type=\"submit\" name=\"sc_button\" value=\"%s\">", _("Send command"));
wprintf(" ");
}
output_headers(1, 1, 0, 0, 0, 0);
-
+ Buf = NewStrBuf();
serv_puts(bstr("g_cmd"));
-
+ StrBuf_ServGetln(Buf);
svput("BOXTITLE", WCS_STRING, _("Server command results"));
do_template("beginboxx", NULL);
wprintf("<a href=\"display_generic\">Enter another command</a><br />\n");
wprintf("<a href=\"display_advanced\">Return to menu</a>\n");
do_template("endbox", NULL);
+ FreeStrBuf(&Buf);
wDumpContent(1);
}