X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fuserlist.c;h=a5a59103daffdab6cd967746dc99a239d8ae69ee;hb=1e32899153e9e52aaec1e651e0c33a563b8aaed8;hp=176a175ebf5175d86f5aa4c540cd0277d0a8c7c6;hpb=227c92b79dbb6aed6e4e0e045e4f2f63f77a7f2e;p=citadel.git diff --git a/webcit/userlist.c b/webcit/userlist.c index 176a175eb..a5a59103d 100644 --- a/webcit/userlist.c +++ b/webcit/userlist.c @@ -1,43 +1,30 @@ /* * $Id$ - * - * Display a list of all accounts on a Citadel system. - * + */ +/** + * \defgroup AccDisplay Display a list of all accounts on a Citadel system. + * \ingroup CitadelConfig */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +/*@{*/ #include "webcit.h" +/** + * \brief structure to keep namelists in + */ struct namelist { - struct namelist *next; - char name[32]; + struct namelist *next; /**< next item of the linked list */ + char name[32]; /**< name of the userentry */ }; -/* - * display the userlist +/** + * \brief display the userlist */ void userlist(void) { - char buf[SIZ]; - char fl[SIZ]; + char buf[256]; + char fl[256]; + char title[256]; struct tm tmbuf; time_t lc; struct namelist *bio = NULL; @@ -54,11 +41,12 @@ void userlist(void) strcpy(bptr->name, buf); bio = bptr; } - output_headers(1, 1, 2, 0, 0, 0, 0); + output_headers(1, 1, 2, 0, 0, 0); wprintf("
\n" "
" - "User list for "); - escputs(serv_info.serv_humannode); + ""); + snprintf(title, sizeof title, _("User list for %s"), serv_info.serv_humannode); + escputs(title); wprintf("" "
\n" "
\n
\n" @@ -71,10 +59,10 @@ void userlist(void) goto DONE; } - wprintf("
" + wprintf("
" ""); - wprintf("\n"); + wprintf(_("" + "")); while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) { extract_token(fl, buf, 0, '|', sizeof fl); @@ -88,7 +76,7 @@ void userlist(void) (bg ? "DDDDDD" : "FFFFFF") ); if (has_bio) { - wprintf(""); escputs(fl); @@ -116,26 +104,29 @@ DONE: wDumpContent(1); } -/* - * Display (non confidential) information about a particular user +/** + * \brief Display (non confidential) information about a particular user */ void showuser(void) { - char who[SIZ]; - char buf[SIZ]; + char who[256]; + char buf[256]; int have_pic; strcpy(who, bstr("who")); - output_headers(1, 1, 2, 0, 0, 0, 0); + output_headers(1, 1, 2, 0, 0, 0); wprintf("
\n" - "
\n"); - wprintf("
User NameNumberAccess LevelLast LoginTotal LoginsTotal Posts
User NameNumberAccess LevelLast LoginTotal LoginsTotal Posts
" - "User profile" + "" + "" + "
"); + wprintf(_("User profile")); + wprintf("" "
\n" "\n
\n" ); - wprintf("
" + wprintf("
" "
\n"); serv_printf("OIMG _userpic_|%s", who); @@ -150,7 +141,7 @@ void showuser(void) wprintf("
"); if (have_pic == 1) { - wprintf(""); } @@ -158,17 +149,20 @@ void showuser(void) serv_printf("RBIO %s", who); serv_getln(buf, sizeof buf); if (buf[0] == '1') { - fmout(NULL, "JUSTIFY"); + fmout("JUSTIFY"); } - wprintf("
" - "" - "  " - "Click here to send an instant message to "); - escputs(who); + "  "); + snprintf(buf, sizeof buf, _("Click here to send an instant message to %s"), who); + escputs(buf); wprintf("\n"); wprintf("
\n"); wDumpContent(1); } + + +/*@}*/