X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Flistsub.c;h=64f809e522f93feba0a380c1c6dba81ebcabf5b0;hb=4b104bf1296e58ea5cad097401297bd8ca08d205;hp=4afb35ebc68d533aae008d887c2a4c7b087a7f6a;hpb=8d8c5af38e5026933ea3b9d5eb1b75f276df1d99;p=citadel.git
diff --git a/webcit/listsub.c b/webcit/listsub.c
index 4afb35ebc..64f809e52 100644
--- a/webcit/listsub.c
+++ b/webcit/listsub.c
@@ -1,234 +1,164 @@
/*
- * $Id$
- */
-/**
- * \defgroup ListSubForms Web forms for handling mailing list subscribe/unsubscribe requests.
- * \ingroup WebcitDisplayItems
+ * Web forms for handling mailing list subscribe/unsubscribe requests.
+ *
+ * Copyright (c) 1996-2012 by the citadel.org team
+ *
+ * This program is open source software. You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License, version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*/
-/*@{*/
#include "webcit.h"
-
-
-/**
- * \brief List subscription handling
+/*
+ * List subscription handling
*/
-void do_listsub(void)
+
+int Conditional_LISTSUB_EXECUTE_SUBSCRIBE(StrBuf *Target, WCTemplputParams *TP)
{
- char cmd[256];
- char room[256];
- char token[256];
- char email[256];
- char subtype[256];
- char escaped_email[256];
- char escaped_room[256];
-
- char buf[SIZ];
- int self;
- char sroom[SIZ];
-
- strcpy(WC->wc_fullname, "");
- strcpy(WC->wc_username, "");
- strcpy(WC->wc_password, "");
- strcpy(WC->wc_roomname, "");
-
- output_headers(1, 0, 0, 1, 1, 0);
- begin_burst();
-
- wprintf("
");
- wprintf(_("You are subscribing %s"
- " to the %s mailing list. "
- "The listserver has "
- "sent you an e-mail with one additional "
- "Web link for you to click on to confirm "
- "your subscription. This extra step is for "
- "your protection, as it prevents others from "
- "being able to subscribe you to lists "
- "without your consent.
"
- "Please click on the link which is being "
- "e-mailed to you and your subscription will "
- "be confirmed. \n"),
- escaped_email, escaped_room);
- wprintf("%s
"
- "You are unsubscribing ");
- escputs(email);
- wprintf(" from the "");
- escputs(room);
- wprintf("" mailing list. The listserver has "
- "sent you an e-mail with one additional "
- "Web link for you to click on to confirm "
- "your unsubscription. This extra step is for "
- "your protection, as it prevents others from "
- "being able to unsubscribe you from "
- "lists without your consent.
"
- "Please click on the link which is being "
- "e-mailed to you and your unsubscription will "
- "be confirmed. \n"
- "Back...