5 * \defgroup AccDisplay Display a list of all accounts on a Citadel system.
6 * \ingroup CitadelConfig
13 * \brief structure to keep namelists in
16 struct namelist *next; /**< next item of the linked list */
17 char name[32]; /**< name of the userentry */
21 * \brief display the userlist
30 struct namelist *bio = NULL;
31 struct namelist *bptr;
36 serv_getln(buf, sizeof buf);
38 while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
39 bptr = (struct namelist *) malloc(sizeof(struct namelist));
41 strcpy(bptr->name, buf);
44 output_headers(1, 1, 2, 0, 0, 0);
45 wprintf("<div id=\"banner\">\n"
46 "<table width=100%% border=0 bgcolor=\"#444455\"><tr><td>"
47 "<span class=\"titlebar\">");
48 snprintf(title, sizeof title, _("User list for %s"), serv_info.serv_humannode);
51 "</td></tr></table>\n"
52 "</div>\n<div id=\"content\">\n"
56 serv_getln(buf, sizeof buf);
58 wprintf("<em>%s</em><br />\n", &buf[4]);
62 wprintf("<div class=\"fix_scrollbar_bug\">"
63 "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
64 wprintf("<tr><th>%s</th><th>%s</th><th>%s</th>"
65 "<th>%s</th><th>%s</th><th>%s</th></tr>",
73 while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
74 extract_token(fl, buf, 0, '|', sizeof fl);
76 for (bptr = bio; bptr != NULL; bptr = bptr->next) {
77 if (!strcasecmp(fl, bptr->name))
81 wprintf("<tr bgcolor=\"#%s\"><td>",
82 (bg ? "DDDDDD" : "FFFFFF")
85 wprintf("<a href=\"showuser&who=");
93 wprintf("</td><td>%ld</td><td>%d</td><td>",
96 lc = extract_long(buf, 3);
97 localtime_r(&lc, &tmbuf);
98 wprintf("%02d/%02d/%04d ",
101 (tmbuf.tm_year + 1900));
104 wprintf("</td><td>%ld</td><td>%5ld</td></tr>\n",
105 extract_long(buf, 4), extract_long(buf, 5));
108 wprintf("</table></div>\n");
109 DONE: wDumpContent(1);
114 * \brief Display (non confidential) information about a particular user
122 strcpy(who, bstr("who"));
124 output_headers(1, 1, 2, 0, 0, 0);
125 wprintf("<div id=\"banner\">\n"
126 "<table width=100%% border=0 bgcolor=\"#444455\"><tr>"
127 "<td><img src=\"static/usermanag_48x.gif\"></td>"
128 "<td align=left><span class=\"titlebar\">");
129 wprintf(_("User profile"));
131 "</td></tr></table>\n"
132 "</div>\n<div id=\"content\">\n"
135 wprintf("<div class=\"fix_scrollbar_bug\">"
136 "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
138 serv_printf("OIMG _userpic_|%s", who);
139 serv_getln(buf, sizeof buf);
143 serv_getln(buf, sizeof buf);
148 wprintf("<center><table><tr><td>");
150 wprintf("<img src=\"image&name=_userpic_&parm=");
154 wprintf("</td><td><h1>%s</h1></td></tr></table></center>\n", who);
155 serv_printf("RBIO %s", who);
156 serv_getln(buf, sizeof buf);
160 wprintf("<br /><a href=\"display_page?recp=");
163 "<img src=\"static/citadelchat_24x.gif\" "
164 "align=middle border=0> ");
165 snprintf(buf, sizeof buf, _("Click here to send an instant message to %s"), who);
169 wprintf("</td></tr></table></div>\n");