* Allow editing of the "disable self-service user account creation" site config option
authorArt Cancro <ajc@citadel.org>
Sun, 3 Mar 2002 06:52:59 +0000 (06:52 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 3 Mar 2002 06:52:59 +0000 (06:52 +0000)
webcit/ChangeLog
webcit/netconf.c
webcit/siteconfig.c

index adfcf0adc212bba78b840193f1ec57c86a2f5c25..613c6ee14defce1c83680bfc511388ee95ec4c2f 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 323.5  2002/03/03 06:52:59  ajc
+* Allow editing of the "disable self-service user account creation" site config option
+
 Revision 323.4  2002/02/24 07:02:44  ajc
 * Added the ability to enter a Subject: line in messages
 * Go to the Mail room when user clicks on the new mail alert icon
@@ -723,4 +726,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 ea1647bdea8a8266128687ff2c61ca962ae31427..00c8efa20f418aff52ea69f614e13ea84b972bc3 100644 (file)
 
 
 
-struct sharelist {
-       struct sharelist *next;
-       char shname[SIZ];
-};
-
 
 void edit_node(void) {
        char buf[SIZ];
index 5f3ba114447a1d9c04de7c6f733117858d718fb7..eafb097d286d2e94f1b3e5f8a6205dcc1034135b 100644 (file)
@@ -194,6 +194,11 @@ void display_siteconfig(void)
                        wprintf("<INPUT TYPE=\"text\" NAME=\"c_net_freq\" MAXLENGTH=\"5\" VALUE=\"%s\">", buf);
                        wprintf("</TD></TR>\n");
                        break;
+               case 30:
+                       wprintf("<TR><TD>Disable self-service user account creation</TD><TD>");
+                       wprintf("<INPUT TYPE=\"checkbox\" NAME=\"c_disable_newu\" VALUE=\"yes\" %s>", ((atoi(buf) != 0) ? "CHECKED" : ""));
+                       wprintf("</TD></TR>\n");
+                       break;
 
                }
        }
@@ -249,6 +254,7 @@ void siteconfig(void)
        serv_printf("%s", ((!strcasecmp(bstr("c_aide_zap"), "yes") ? "1" : "0")));
        serv_printf("%s", bstr("c_imap_port"));
        serv_printf("%s", bstr("c_net_freq"));
+       serv_printf("%s", bstr("c_disable_newu"));
        serv_printf("000");
        display_success("System configuration has been updated.");
 }