* Ditched the frames mode completely. It wasn't working properly in,
[citadel.git] / webcit / mainmenu.c
index d35460da9b037757a5a08c2b5138ebd4fa7efcfd..543a86ce186e1606e6192fee22fbe82849d8c3d1 100644 (file)
@@ -314,14 +314,13 @@ void do_generic(void)
 
 
 /*
- * 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");
@@ -343,12 +342,6 @@ void display_menubar(int as_single_page) {
                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);