* Fixed bug in "validate new users" screen (thanks Campy)
authorArt Cancro <ajc@citadel.org>
Fri, 4 Jun 2004 02:29:08 +0000 (02:29 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 4 Jun 2004 02:29:08 +0000 (02:29 +0000)
webcit/ChangeLog
webcit/auth.c

index fcd46826c7dfb17076a6ddd8a16966fc0b7ae547..a7370a2699ee6ddb2baa349cda0865dca8dc5a5a 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 510.14  2004/06/04 02:29:07  ajc
+* Fixed bug in "validate new users" screen (thanks Campy)
+
 Revision 510.13  2004/06/03 03:21:22  ajc
 * "Reply" button now carries the message subject into the reply.
 
@@ -1859,4 +1862,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 c6a280e9cfa362788ea5293b6bd1dd388c3e341c..34cb1af3622167e063d0a0f55b0f3dd041414cd6 100644 (file)
@@ -226,8 +226,8 @@ void validate(void)
 
        strcpy(buf, bstr("user"));
        if (strlen(buf) > 0)
-               if (strlen(bstr("WC->axlevel")) > 0) {
-                       serv_printf("VALI %s|%s", buf, bstr("WC->axlevel"));
+               if (strlen(bstr("axlevel")) > 0) {
+                       serv_printf("VALI %s|%s", buf, bstr("axlevel"));
                        serv_gets(buf);
                        if (buf[0] != '2') {
                                wprintf("<EM>%s</EM><BR>\n", &buf[4]);
@@ -241,6 +241,11 @@ void validate(void)
                wDumpContent(1);
                return;
        }
+
+       wprintf("<CENTER>");
+       do_template("beginbox_nt");
+       wprintf("<CENTER>");
+
        strcpy(user, &buf[4]);
        serv_printf("GREG %s", user);
        serv_gets(cmd);
@@ -274,15 +279,18 @@ void validate(void)
                wprintf("<H1>%s</H1>%s<BR>\n", user, &cmd[4]);
        }
 
-       wprintf("<CENTER><TABLE border><CAPTION>Select access level:");
-       wprintf("</CAPTION><TR>");
+       wprintf("<HR>Select access level for this user:<BR>\n");
        for (a = 0; a <= 6; ++a) {
-               wprintf("<TD><A HREF=\"/validate&user=");
+               wprintf("<A HREF=\"/validate&user=");
                urlescputs(user);
-               wprintf("&WC->axlevel=%d\">%s</A></TD>\n",
+               wprintf("&axlevel=%d\">%s</A>&nbsp;&nbsp;&nbsp;\n",
                        a, axdefs[a]);
        }
-       wprintf("</TR></TABLE><CENTER><BR>\n");
+       wprintf("<BR>\n");
+
+       wprintf("</CENTER>\n");
+       do_template("endbox");
+       wprintf("</CENTER>\n");
        wDumpContent(1);
 }