From: Thierry Pasqualier Date: Mon, 9 Jul 2007 06:54:50 +0000 (+0000) Subject: iconbar : mark active/inactive user with CSS X-Git-Tag: v7.86~3242 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=6eb4d71844ef795f3efa46d740e370fd28ae59d1;p=citadel.git iconbar : mark active/inactive user with CSS --- diff --git a/webcit/summary.c b/webcit/summary.c index adc70ec5b..3809a822c 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -80,13 +80,23 @@ void new_messages_section(void) { void wholist_section(void) { char buf[SIZ]; char user[SIZ]; + time_t last_activity; + time_t now; serv_puts("RWHO"); serv_getln(buf, sizeof buf); if (buf[0] == '1') while(serv_getln(buf, sizeof buf), strcmp(buf, "000")) { extract_token(user, buf, 1, '|', sizeof user); + last_activity = extract_long(buf, 5); if (strcmp(user, NLI)) { - wprintf("
  • 900L) { + wprintf("inactiveuser"); + } + else { + wprintf("activeuser"); + } + wprintf("\">"); escputs(user);