/*
- * Display the menubar. Set as_single_page to 1 if we're inside a frameset
- * and need to display HTML headers and footers -- otherwise it's assumed
+ * Display the menubar. Set as_single_page to
+ * display HTML headers and footers -- otherwise it's assumed
* that the menubar is being embedded in another page.
*/
void display_menubar(int as_single_page) {
FILE *menubar_body;
char buf[256];
- int i;
if (as_single_page) {
printf("HTTP/1.0 200 OK\n");
wprintf("menubar<BR>%s", strerror(errno));
} else {
while (fgets(buf, sizeof(buf), menubar_body) != NULL) {
- /* Sleazy hack to disable TARGET= directive */
- if (noframes) for (i=0; i<strlen(buf); ++i) {
- if (!strncasecmp(&buf[i], "TARGET", 6)) {
- buf[i]='Q';
- }
- }
wprintf("%s", buf);
}
fclose(menubar_body);