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;
46 while (serv_gets(buf), strcmp(buf, "000")) {
47 bptr = (struct namelist *) malloc(sizeof(struct namelist));
49 strcpy(bptr->name, buf);
57 wprintf("<EM>%s</EM><BR>\n", &buf[4]);
60 wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
61 wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
62 wprintf("<B>User list for ");
63 escputs(serv_info.serv_humannode);
64 wprintf("</B></FONT></TD></TR></TABLE>\n");
66 wprintf("<CENTER><TABLE border>");
67 wprintf("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>");
68 wprintf("<TH>Last Call</TH><TH>Total Calls</TH><TH>Total Posts</TH></TR>\n");
70 while (serv_gets(buf), strcmp(buf, "000")) {
73 for (bptr = bio; bptr != NULL; bptr = bptr->next) {
74 if (!strcasecmp(fl, bptr->name))
79 wprintf("<A HREF=\"/showuser&who=");
87 wprintf("</TD><TD>%ld</TD><TD>%d</TD><TD>",
90 lc = extract_long(buf, 3);
91 tmbuf = (struct tm *) localtime(&lc);
92 wprintf("%02d/%02d/%04d ",
95 (tmbuf->tm_year + 1900));
98 wprintf("</TD><TD>%ld</TD><TD>%5ld</TD></TR>\n",
99 extract_long(buf, 4), extract_long(buf, 5));
102 wprintf("</TABLE></CENTER>\n");
103 DONE:wDumpContent(1);
108 * Display (non confidential) information about a particular user
119 wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
120 wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>User profile");
121 wprintf("</B></FONT></TD></TR></TABLE>\n");
123 strcpy(who, bstr("who"));
124 serv_printf("OIMG _userpic_|%s", who);
134 wprintf("<CENTER><TABLE><TR><TD>");
136 wprintf("<IMG SRC=\"/image&name=_userpic_&parm=");
140 wprintf("</TD><TD><H1>%s</H1></TD></TR></TABLE></CENTER>\n", who);
141 serv_printf("RBIO %s", who);
146 wprintf("<BR><A HREF=\"/display_page&recp=");
149 "<IMG SRC=\"/static/page.gif\" ALIGN=MIDDLE BORDER=0>"
151 "Click here to page this user (send an instant message)"