]> code.citadel.org Git - citadel.git/blobdiff - webcit/roomops.c
Set up an option in output_headers() to optionally print the most
[citadel.git] / webcit / roomops.c
index 13d96c24779570e2dc5c33e7c1c438d2846a1233..dbf694a41cb9cb38fefa297a206fed6733b22b86 100644 (file)
@@ -116,8 +116,7 @@ void list_all_rooms_by_floor(void) {
        load_floorlist();
 
         printf("HTTP/1.0 200 OK\n");
-        output_headers();
-        wprintf("<HTML><HEAD><TITLE>List known rooms</TITLE></HEAD><BODY BACKGROUND=\"/image&name=background\" TEXT=\"#000000\" LINK=\"#004400\">\n");
+        output_headers(1);
 
        wprintf("<TABLE width=100% border><TR><TH>Floor</TH>");
        wprintf("<TH>Rooms with new messages</TH>");
@@ -193,8 +192,7 @@ void gotoroom(char *gname, int display_name)
 
 
        printf("HTTP/1.0 200 OK\n");
-       output_headers();
-        wprintf("<HTML><BODY BACKGROUND=\"/image&name=background\" TEXT=\"#000000\" LINK=\"#004400\">\n");
+       output_headers(1);
 
        if (display_name != 2) {
                /* store ungoto information */