* Add "permanent room" setting to room edit screen
authorArt Cancro <ajc@citadel.org>
Tue, 1 Jun 2004 03:32:29 +0000 (03:32 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 1 Jun 2004 03:32:29 +0000 (03:32 +0000)
* create room -- allow longer strings

webcit/ChangeLog
webcit/roomops.c

index 22508c26c765b3e935cbad63d07cb757e26b533e..1ae01db187c732246934d09fb6950dabff3d5b5e 100644 (file)
@@ -1,4 +1,8 @@
 $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.
@@ -1834,4 +1838,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index eab01a968176785317a68b5568ba582c49b67cd6..7716506335ba20a36cc141831d1fa7272e7b1001 100644 (file)
@@ -933,6 +933,11 @@ void display_editroom(void)
                        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");
@@ -1246,6 +1251,12 @@ void editroom(void)
                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 {
@@ -1427,7 +1438,7 @@ void display_entroom(void)
        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(); 
@@ -1529,9 +1540,9 @@ void er_set_default_view(int newview) {
 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;