$Log$
+Revision 510.8 2004/06/01 03:32:28 ajc
+* Add "permanent room" setting to room edit screen
+* create room -- allow longer strings
+
Revision 510.7 2004/06/01 00:36:43 ajc
* Hmmph. Do the session cookie as hex instead of base64. There really
are some characters in the base64 set that make HTTP do nasty things.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
wprintf("CHECKED ");
wprintf("> Network shared room\n");
+ wprintf("<LI><INPUT TYPE=\"checkbox\" NAME=\"permanent\" VALUE=\"yes\" ");
+ if (er_flags & QR_PERMANENT)
+ wprintf("CHECKED ");
+ wprintf("> Permanent (does not auto-purge)\n");
+
/* start of anon options */
wprintf("<LI>Anonymous messages<UL>\n");
er_flags &= ~QR_READONLY;
}
+ if (!strcmp(bstr("permanent"), "yes")) {
+ er_flags |= QR_PERMANENT;
+ } else {
+ er_flags &= ~QR_PERMANENT;
+ }
+
if (!strcmp(bstr("network"), "yes")) {
er_flags |= QR_NETWORK;
} else {
wprintf("<FORM METHOD=\"POST\" ACTION=\"/entroom\">\n");
wprintf("<UL><LI>Name of room: ");
- wprintf("<INPUT TYPE=\"text\" NAME=\"er_name\" MAXLENGTH=\"19\">\n");
+ wprintf("<INPUT TYPE=\"text\" NAME=\"er_name\" MAXLENGTH=\"127\">\n");
wprintf("<LI>Resides on floor: ");
load_floorlist();
void entroom(void)
{
char buf[SIZ];
- char er_name[20];
- char er_type[20];
- char er_password[10];
+ char er_name[SIZ];
+ char er_type[SIZ];
+ char er_password[SIZ];
int er_floor;
int er_num_type;