Validate new users screen now uses the main room banner
authorArt Cancro <ajc@citadel.org>
Tue, 1 Mar 2011 04:57:31 +0000 (23:57 -0500)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 14:50:56 +0000 (14:50 +0000)
webcit/auth.c

index 9d2eaa3e66b2d49c694aa24f4566d97ea3ccfd1a..ebf7aa14cdeb4be1bdf834a510520ff9b1fedfeb 100644 (file)
@@ -559,14 +559,11 @@ void validate(void)
        char buf[SIZ];
        int a;
 
-       output_headers(1, 1, 2, 0, 0, 0);
-       wc_printf("<div id=\"banner\">\n");
-       wc_printf("<h1>");
-       wc_printf(_("Validate new users"));
-       wc_printf("</h1>");
-       wc_printf("</div>\n");
+       output_headers(1, 1, 1, 0, 0, 0);
 
-       wc_printf("<div id=\"content\" class=\"service\">\n");
+        do_template("beginbox_1", NULL);
+        StrBufAppendBufPlain(WC->WBuf, _("Validate new users"), -1, 0);
+        do_template("beginbox_2", NULL);
 
        /* If the user just submitted a validation, process it... */
        safestrncpy(buf, bstr("user"), sizeof buf);
@@ -680,6 +677,7 @@ void validate(void)
 
        wc_printf("</div>\n");
        wc_printf("</td></tr></table>\n");
+       do_template("endbox", NULL);
        wDumpContent(1);
 }