length) if a server read fails. This causes serv_gets() to return
instead of looping endlessly. Fixes chat problem found on linux-ppc.
$Log$
+Revision 505.12 2004/03/07 21:31:17 ajc
+* serv_read() now zeroes out the supplied buffer (with the supplied
+ length) if a server read fails. This causes serv_gets() to return
+ instead of looping endlessly. Fixes chat problem found on linux-ppc.
+
Revision 505.11 2004/03/03 05:21:36 ajc
* Made the chat screen totally kick-ass sweet. The flickering reload
i-frame is now tiny and hidden, and it *appends* new chat data to
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
WC->serv_sock = (-1);
WC->connected = 0;
WC->logged_in = 0;
+ memset(buf, 0, bytes);
return;
}
len = len + rlen;
struct namelist *bio = NULL;
struct namelist *bptr;
int has_bio;
+ int bg = 0;
serv_puts("LBIO");
serv_gets(buf);
do_template("beginbox");
wprintf("<CENTER>");
- wprintf("<TABLE border>");
+ wprintf("<TABLE border=0 width=100%%>");
wprintf("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>");
wprintf("<TH>Last Call</TH><TH>Total Calls</TH><TH>Total Posts</TH></TR>\n");
if (!strcasecmp(fl, bptr->name))
has_bio = 1;
}
- wprintf("<TR><TD>");
+ bg = 1 - bg;
+ wprintf("<TR BGCOLOR=\"#%s\"><TD>",
+ (bg ? "DDDDDD" : "FFFFFF")
+ );
if (has_bio) {
wprintf("<A HREF=\"/showuser&who=");
urlescputs(fl);