9 #include <sys/socket.h>
12 #include <netinet/in.h>
25 * List subscription handling
35 strcpy(WC->wc_username, "");
36 strcpy(WC->wc_password, "");
37 strcpy(WC->wc_roomname, "");
39 output_headers(2); /* note "2" causes cookies to be unset */
41 strcpy(cmd, bstr("cmd"));
42 strcpy(room, bstr("room"));
43 strcpy(token, bstr("token"));
44 strcpy(email, bstr("email"));
45 strcpy(subtype, bstr("subtype"));
50 if (!strcasecmp(cmd, "xx")) {
54 * Any other (invalid) command causes the form to be displayed
58 "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>"
59 "<FONT SIZE=+1 COLOR=\"FFFFFF\""
60 "<B>List subscribe/unsubscribe</B>\n"
61 "</TD></TR></TABLE><BR>\n"
64 wprintf("<TABLE BORDER=0>\n"
65 "<FORM METHOD=\"POST\" ACTION=\"/listsub\">\n"
68 wprintf("<TR><TD>Name of list</TD>"
73 "<INPUT TYPE=\"submit\" NAME=\"sc\""
74 " VALUE=\"Submit\">\n"
80 * Since this isn't part of a normal Citadel session, we bail right
81 * out without maintaining any state.