X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fforum_view.c;h=71d7b09116414db01d9ecb98d4d834b009a906e8;hb=HEAD;hp=016b8116da9c97d91affe0a3e5d109a984791233;hpb=351c06b478ca3292be86472f76becbd68df8c1f9;p=citadel.git diff --git a/webcit-ng/forum_view.c b/webcit-ng/forum_view.c deleted file mode 100644 index 016b8116d..000000000 --- a/webcit-ng/forum_view.c +++ /dev/null @@ -1,332 +0,0 @@ -/* - * Forum view (threaded/flat) - * - * Copyright (c) 1996-2018 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" - -struct mthread { - long msgnum; - time_t datetime; - int threadhash; - int refhashes[10]; - char from[64]; - int parent; -}; - - -// Renderer for one message in the threaded view -// (This will probably work for the flat view too.) -// -void forum_render_one_message(struct ctdlsession *c, StrBuf *sj, long msgnum) -{ - StrBuf *raw_msg = NULL; - StrBuf *sanitized_msg = NULL; - char buf[1024]; - char content_transfer_encoding[1024] = { 0 }; - char content_type[1024] = { 0 }; - char author[128] = { 0 }; - char datetime[128] = { 0 } ; - - ctdl_printf(c, "MSG4 %ld", msgnum); - ctdl_readline(c, buf, sizeof(buf)); - if (buf[0] != '1') { - StrBufAppendPrintf(sj, "