]> code.citadel.org Git - citadel.git/blobdiff - webcit/mainmenu.c
* wDumpContent() is now responsible for </BODY></HTML> most of the
[citadel.git] / webcit / mainmenu.c
index 7919b97bbbd932a590c8fc32c0f593a1e96cb264..7ef6322d82d50b507c71064cc6ea7def23004f2b 100644 (file)
@@ -203,8 +203,7 @@ void display_main_menu(void) {
        printf("HTTP/1.0 200 OK\n");
        output_headers(1, "bottom");
        embed_main_menu();
-       wprintf("</BODY></HTML>\n");
-       wDumpContent();
+       wDumpContent(1);
        }
 
 
@@ -213,8 +212,7 @@ void display_advanced_menu(void) {
        output_headers(1, "bottom");
        embed_advanced_menu();
        embed_main_menu();
-       wprintf("</BODY></HTML>\n");
-       wDumpContent();
+       wDumpContent(1);
        }
 
 
@@ -247,8 +245,7 @@ void display_generic(void) {
        wprintf("<INPUT TYPE=\"submit\" NAME=\"sc\" VALUE=\"Cancel\"><BR>\n");
 
        wprintf("</FORM></CENTER>\n");
-       wprintf("</BODY></HTML>\n");
-       wDumpContent();
+       wDumpContent(1);
        }
 
 void do_generic(void) {
@@ -313,6 +310,5 @@ void do_generic(void) {
        wprintf("<HR>");
        wprintf("<A HREF=\"/display_generic\">Enter another command</A><BR>\n");
        wprintf("<A HREF=\"/display_advanced\">Return to menu</A>\n");
-       wprintf("</BODY></HTML>\n");
-       wDumpContent();
+       wDumpContent(1);
        }