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("<SPAN CLASS=\"titlebar\">User list for ");
62 escputs(serv_info.serv_humannode);
63 wprintf("</SPAN></TD></TR></TABLE>\n");
65 wprintf("<CENTER><TABLE border>");
66 wprintf("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>");
67 wprintf("<TH>Last Call</TH><TH>Total Calls</TH><TH>Total Posts</TH></TR>\n");
69 while (serv_gets(buf), strcmp(buf, "000")) {
72 for (bptr = bio; bptr != NULL; bptr = bptr->next) {
73 if (!strcasecmp(fl, bptr->name))
78 wprintf("<A HREF=\"/showuser&who=");
86 wprintf("</TD><TD>%ld</TD><TD>%d</TD><TD>",
89 lc = extract_long(buf, 3);
90 tmbuf = (struct tm *) localtime(&lc);
91 wprintf("%02d/%02d/%04d ",
94 (tmbuf->tm_year + 1900));
97 wprintf("</TD><TD>%ld</TD><TD>%5ld</TD></TR>\n",
98 extract_long(buf, 4), extract_long(buf, 5));
101 wprintf("</TABLE></CENTER>\n");
102 DONE:wDumpContent(1);
107 * Display (non confidential) information about a particular user
118 wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
119 wprintf("<SPAN CLASS=\"titlebar\">User profile");
120 wprintf("</SPAN></TD></TR></TABLE>\n");
122 strcpy(who, bstr("who"));
123 serv_printf("OIMG _userpic_|%s", who);
133 wprintf("<CENTER><TABLE><TR><TD>");
135 wprintf("<IMG SRC=\"/image&name=_userpic_&parm=");
139 wprintf("</TD><TD><H1>%s</H1></TD></TR></TABLE></CENTER>\n", who);
140 serv_printf("RBIO %s", who);
145 wprintf("<BR><A HREF=\"/display_page&recp=");
148 "<IMG SRC=\"/static/page.gif\" ALIGN=MIDDLE BORDER=0>"
150 "Click here to page this user (send an instant message)"