]> code.citadel.org Git - citadel.git/blobdiff - webcit/userlist.c
* Cleaned up the rcs/cvs Id tags and leading comments at the top of some files
[citadel.git] / webcit / userlist.c
index d05e635a42f6484d69198b452afb9847359cf303..217c58bb744dd97bc58dc19e372ef75bfc5ff095 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * $Id$
+ *
+ * Display a list of all accounts on a Citadel system.
+ *
+ */
+
 #include <ctype.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -19,9 +26,6 @@
 #include <signal.h>
 #include "webcit.h"
 
-
-
-
 struct namelist {
        struct namelist *next;
        char name[32];
@@ -50,12 +54,12 @@ void userlist(void)
                        strcpy(bptr->name, buf);
                        bio = bptr;
                }
-       output_headers(3);
+       output_headers(1, 1, 0, 0, 0, 0, 0);
 
        serv_puts("LIST");
        serv_gets(buf);
        if (buf[0] != '1') {
-               wprintf("<EM>%s</EM><BR>\n", &buf[4]);
+               wprintf("<EM>%s</EM><br />\n", &buf[4]);
                goto DONE;
        }
 
@@ -66,7 +70,7 @@ void userlist(void)
        wprintf("<CENTER>");
        wprintf("<TABLE border=0 width=100%%>");
        wprintf("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>");
-       wprintf("<TH>Last Call</TH><TH>Total Calls</TH><TH>Total Posts</TH></TR>\n");
+       wprintf("<TH>Last Login</TH><TH>Total Logins</TH><TH>Total Posts</TH></TR>\n");
 
        while (serv_gets(buf), strcmp(buf, "000")) {
                extract(fl, buf, 0);
@@ -119,7 +123,7 @@ void showuser(void)
        char buf[SIZ];
        int have_pic;
 
-       output_headers(3);
+       output_headers(1, 1, 0, 0, 0, 0, 0);
 
        svprintf("BOXTITLE", WCS_STRING, "User profile");
        do_template("beginbox");
@@ -147,7 +151,7 @@ void showuser(void)
        if (buf[0] == '1') {
                fmout(NULL, "JUSTIFY");
        }
-       wprintf("<BR><A HREF=\"/display_page&recp=");
+       wprintf("<br /><A HREF=\"/display_page&recp=");
        urlescputs(who);
        wprintf("\">"
                "<IMG SRC=\"/static/page.gif\" ALIGN=MIDDLE BORDER=0>"