]> code.citadel.org Git - citadel.git/blobdiff - webcit/userlist.c
* Brought over the newer string tokenizer from Citadel
[citadel.git] / webcit / userlist.c
index 45ba3f421119d4aba3f915bb154e9fc7e144e0be..8fd97db3538772189e4f33c83c35cfe44b58d9e1 100644 (file)
@@ -32,8 +32,8 @@ struct namelist {
  */
 void userlist(void)
 {
-       char buf[256];
-       char fl[256];
+       char buf[SIZ];
+       char fl[SIZ];
        struct tm *tmbuf;
        long lc;
        struct namelist *bio = NULL;
@@ -109,8 +109,8 @@ void userlist(void)
  */
 void showuser(void)
 {
-       char who[256];
-       char buf[256];
+       char who[SIZ];
+       char buf[SIZ];
        int have_pic;
 
        output_headers(1);
@@ -140,7 +140,15 @@ void showuser(void)
        wprintf("</TD><TD><H1>%s</H1></TD></TR></TABLE></CENTER>\n", who);
        serv_printf("RBIO %s", who);
        serv_gets(buf);
-       if (buf[0] == '1')
+       if (buf[0] == '1') {
                fmout(NULL);
+       }
+       wprintf("<BR><A HREF=\"/display_page&recp=");
+       urlescputs(who);
+       wprintf("\">"
+               "<IMG SRC=\"/static/page.gif\" ALIGN=MIDDLE BORDER=0>"
+               "&nbsp;&nbsp;"
+               "Click here to page this user (send an instant message)"
+               "</A>\n");
        wDumpContent(1);
 }