9 #include <sys/socket.h>
12 #include <netinet/in.h>
26 struct namelist *next;
31 * display the userlist
39 struct namelist *bio = NULL;
40 struct namelist *bptr;
47 while (serv_gets(buf), strcmp(buf, "000")) {
48 bptr = (struct namelist *) malloc(sizeof(struct namelist));
50 strcpy(bptr->name, buf);
53 output_headers(1, 1, 0, 0, 0, 0, 0);
58 wprintf("<EM>%s</EM><br />\n", &buf[4]);
62 svprintf("BOXTITLE", WCS_STRING, "User list for %s",
63 serv_info.serv_humannode);
65 do_template("beginbox");
67 wprintf("<TABLE border=0 width=100%%>");
68 wprintf("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>");
69 wprintf("<TH>Last Call</TH><TH>Total Calls</TH><TH>Total Posts</TH></TR>\n");
71 while (serv_gets(buf), strcmp(buf, "000")) {
74 for (bptr = bio; bptr != NULL; bptr = bptr->next) {
75 if (!strcasecmp(fl, bptr->name))
79 wprintf("<TR BGCOLOR=\"#%s\"><TD>",
80 (bg ? "DDDDDD" : "FFFFFF")
83 wprintf("<A HREF=\"/showuser&who=");
91 wprintf("</TD><TD>%ld</TD><TD>%d</TD><TD>",
94 lc = extract_long(buf, 3);
95 tmbuf = (struct tm *) localtime(&lc);
96 wprintf("%02d/%02d/%04d ",
99 (tmbuf->tm_year + 1900));
102 wprintf("</TD><TD>%ld</TD><TD>%5ld</TD></TR>\n",
103 extract_long(buf, 4), extract_long(buf, 5));
107 wprintf("</CENTER>\n");
108 do_template("endbox");
109 DONE: wDumpContent(1);
114 * Display (non confidential) information about a particular user
122 output_headers(1, 1, 0, 0, 0, 0, 0);
124 svprintf("BOXTITLE", WCS_STRING, "User profile");
125 do_template("beginbox");
127 strcpy(who, bstr("who"));
128 serv_printf("OIMG _userpic_|%s", who);
138 wprintf("<CENTER><TABLE><TR><TD>");
140 wprintf("<IMG SRC=\"/image&name=_userpic_&parm=");
144 wprintf("</TD><TD><H1>%s</H1></TD></TR></TABLE></CENTER>\n", who);
145 serv_printf("RBIO %s", who);
148 fmout(NULL, "JUSTIFY");
150 wprintf("<br /><A HREF=\"/display_page&recp=");
153 "<IMG SRC=\"/static/page.gif\" ALIGN=MIDDLE BORDER=0>"
155 "Click here to page this user (send an instant message)"
158 do_template("endbox");