]> code.citadel.org Git - citadel.git/blobdiff - webcit/who.c
Set up an option in output_headers() to optionally print the most
[citadel.git] / webcit / who.c
index 3ad6008c93f11fc4d113a3038c96120ea6cbe624..3b5de640d0cdaae182044ba1f65630294ce5723d 100644 (file)
@@ -31,13 +31,7 @@ void whobbs(void) {
        int foundit;
 
         printf("HTTP/1.0 200 OK\n");
-        output_headers();
-        wprintf("<HTML><HEAD><TITLE>Who is online?</TITLE>\n");
-
-       /* Uncomment this line to cause the wholist to auto-refresh */
-       /* wprintf("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"60\">\n"); */
-
-       wprintf("</HEAD><BODY BACKGROUND=\"/image&name=background\" TEXT=\"#000000\" LINK=\"#004400\">\n");
+        output_headers(1);
 
         wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
         wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>Users currently on ");