strcpy(WC->wc_password, "");
strcpy(WC->wc_roomname, "");
- wprintf("<HTML><HEAD><TITLE>");
+ output_headers(1, 0, 0, 1, 1, 0);
+ begin_burst();
+
+ wprintf("<HTML><HEAD>\n"
+ "<meta name=\"MSSmartTagsPreventParsing\" content=\"TRUE\" />\n"
+ "<link href=\"static/webcit.css\" rel=\"stylesheet\" type=\"text/css\">\n"
+ "<TITLE>\n"
+ );
wprintf(_("List subscription"));
wprintf("</TITLE></HEAD><BODY>\n");
* Subscribe command
*/
if (!strcasecmp(cmd, "subscribe")) {
- serv_printf("SUBS subscribe|%s|%s|%s|%s/listsub",
+ serv_printf("SUBS subscribe|%s|%s|%s|%s://%s/listsub",
room,
email,
subtype,
+ (is_https ? "https" : "http"),
WC->http_host
);
serv_getln(buf, sizeof buf);
"e-mailed to you and your subscription will "
"be confirmed.<br />\n"),
escaped_email, escaped_room);
- wprintf("<A HREF=\"/listsub\">%s</A></CENTER>\n", _("Go back..."));
+ wprintf("<a href=\"listsub\">%s</A></CENTER>\n", _("Go back..."));
}
else {
wprintf("<FONT SIZE=+1><B>ERROR: %s</B>"
* Unsubscribe command
*/
else if (!strcasecmp(cmd, "unsubscribe")) {
- serv_printf("SUBS unsubscribe|%s|%s|%s/listsub",
+ serv_printf("SUBS unsubscribe|%s|%s|%s://%s/listsub",
room,
email,
+ (is_https ? "https" : "http"),
WC->http_host
);
serv_getln(buf, sizeof buf);
"Please click on the link which is being "
"e-mailed to you and your unsubscription will "
"be confirmed.<br />\n"
- "<A HREF=\"/listsub\">Back...</A></CENTER>\n"
+ "<a href=\"listsub\">Back...</A></CENTER>\n"
);
}
else {
* Any other (invalid) command causes the form to be displayed
*/
else {
-FORM: wprintf("<FORM METHOD=\"POST\" ACTION=\"/listsub\">\n"
+FORM: wprintf("<FORM METHOD=\"POST\" action=\"listsub\">\n"
"<TABLE BORDER=0>\n"
);
}
- /*
- * Since this isn't part of a normal Citadel session, we bail right
- * out without maintaining any state.
- */
- /* wDumpContent(2); */
wprintf("</BODY></HTML>\n");
+ wDumpContent(0);
end_webcit_session();
}