8 * structure to keep namelists in
11 struct namelist
*next
; /**< next item of the linked list */
12 char name
[32]; /**< name of the userentry */
16 * display the userlist
25 struct namelist
*bio
= NULL
;
26 struct namelist
*bptr
;
31 serv_getln(buf
, sizeof buf
);
33 while (serv_getln(buf
, sizeof buf
), strcmp(buf
, "000")) {
34 bptr
= (struct namelist
*) malloc(sizeof(struct namelist
));
36 strcpy(bptr
->name
, buf
);
39 output_headers(1, 1, 2, 0, 0, 0);
40 wprintf("<div id=\"banner\">\n");
42 snprintf(title
, sizeof title
, _("User list for %s"), ChrPtr(serv_info
.serv_humannode
));
47 wprintf("<div id=\"content\" class=\"service\">\n");
50 serv_getln(buf
, sizeof buf
);
52 wprintf("<em>%s</em><br />\n", &buf
[4]);
56 wprintf("<div class=\"fix_scrollbar_bug\">"
57 "<table class=\"userlist_background\"><tr><td>\n");
58 wprintf("<tr><th>%s</th><th>%s</th><th>%s</th>"
59 "<th>%s</th><th>%s</th><th>%s</th></tr>",
67 while (serv_getln(buf
, sizeof buf
), strcmp(buf
, "000")) {
68 extract_token(fl
, buf
, 0, '|', sizeof fl
);
70 for (bptr
= bio
; bptr
!= NULL
; bptr
= bptr
->next
) {
71 if (!strcasecmp(fl
, bptr
->name
))
75 wprintf("<tr bgcolor=\"#%s\"><td>",
76 (bg
? "DDDDDD" : "FFFFFF")
79 wprintf("<a href=\"showuser&who=");
87 wprintf("</td><td>%ld</td><td>%d</td><td>",
90 lc
= extract_long(buf
, 3);
91 localtime_r(&lc
, &tmbuf
);
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></div>\n");
103 DONE
: wDumpContent(1);
108 * Display (non confidential) information about a particular user
116 strcpy(who
, bstr("who"));
118 output_headers(1, 1, 2, 0, 0, 0);
119 wprintf("<div id=\"banner\">\n");
120 wprintf("<img src=\"static/usermanag_48x.gif\">");
122 wprintf(_("User profile"));
126 wprintf("<div id=\"content\" class=\"service\">\n");
128 wprintf("<div class=\"fix_scrollbar_bug\">"
129 "<table class=\"userlist_background\"><tr><td>\n");
131 serv_printf("OIMG _userpic_|%s", who
);
132 serv_getln(buf
, sizeof buf
);
136 serv_getln(buf
, sizeof buf
);
141 wprintf("<center><table><tr><td>");
143 wprintf("<img src=\"image&name=_userpic_&parm=");
147 wprintf("</td><td><h1>");
149 wprintf("</h1></td></tr></table></center>\n");
150 serv_printf("RBIO %s", who
);
151 serv_getln(buf
, sizeof buf
);
155 wprintf("<br /><a href=\"display_page?recp=");
158 "<img src=\"static/citadelchat_24x.gif\" "
159 "align=middle border=0> ");
160 snprintf(buf
, sizeof buf
, _("Click here to send an instant message to %s"), who
);
164 wprintf("</td></tr></table></div>\n");
172 WebcitAddUrlHandler(HKEY("userlist"), userlist
, 0);
173 WebcitAddUrlHandler(HKEY("showuser"), showuser
, 0);