]> code.citadel.org Git - citadel.git/blobdiff - webcit/listsub.c
* shuffled members of wcsession -> do a make clean or everything will burst in your...
[citadel.git] / webcit / listsub.c
index ef7d93b743f858b6d0e31593a675491980aa8832..8a2f2f5acee7c29cd9284126f8c470fef7d3854c 100644 (file)
@@ -23,10 +23,10 @@ void do_listsub(void)
        int self;
        char sroom[SIZ];
 
-       strcpy(WC->wc_fullname, "");
-       strcpy(WC->wc_username, "");
-       strcpy(WC->wc_password, "");
-       strcpy(WC->wc_roomname, "");
+       FlushStrBuf(WC->wc_fullname);
+       FlushStrBuf(WC->wc_username);
+       FlushStrBuf(WC->wc_password);
+       FlushStrBuf(WC->wc_roomname);
 
        output_headers(1, 0, 0, 1, 1, 0);
        begin_burst();
@@ -48,8 +48,8 @@ void do_listsub(void)
        wprintf("<div align=center>");
        wprintf("<table border=0 width=75%%><tr><td>");
 
-       svprintf("BOXTITLE", WCS_STRING, _("List subscribe/unsubscribe"));
-       do_template("beginbox");
+       svput("BOXTITLE", WCS_STRING, _("List subscribe/unsubscribe"));
+       do_template("beginboxx", NULL);
        wprintf("<div align=center><br>");
 
        /*
@@ -61,7 +61,7 @@ void do_listsub(void)
                        email,
                        subtype,
                        (is_https ? "https" : "http"),
-                       WC->http_host
+                           ChrPtr(WC->http_host)
                );
                serv_getln(buf, sizeof buf);
                if (buf[0] == '2') {
@@ -99,10 +99,10 @@ void do_listsub(void)
         */
        else if (!strcasecmp(cmd, "unsubscribe")) {
                serv_printf("SUBS unsubscribe|%s|%s|%s://%s/listsub",
-                       room,
-                       email,
-                       (is_https ? "https" : "http"),
-                       WC->http_host
+                           room,
+                           email,
+                           (is_https ? "https" : "http"),
+                           ChrPtr(WC->http_host)
                );
                serv_getln(buf, sizeof buf);
                if (buf[0] == '2') {
@@ -217,7 +217,7 @@ FORM:               wprintf("<form method=\"POST\" action=\"listsub\">\n");
        }
 
        wprintf("</div>");
-       do_template("endbox");
+       do_template("endbox", NULL);
        wprintf("</td></tr></table></div>");
 
        wprintf("</BODY></HTML>\n");