X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fold_threaded_view_save_for_reference.c;h=53b9dbfd1beccb04794dd1e391275c2e49671aef;hb=HEAD;hp=03f7a1f7ef526e15c09024e8e6c5f552d25a1647;hpb=3233523d9abe658ca1d9e63ce41a732aff1de214;p=citadel.git diff --git a/webcit-ng/old_threaded_view_save_for_reference.c b/webcit-ng/old_threaded_view_save_for_reference.c deleted file mode 100644 index 03f7a1f7e..000000000 --- a/webcit-ng/old_threaded_view_save_for_reference.c +++ /dev/null @@ -1,285 +0,0 @@ -/* - * This is some older code for the forum view that does server-side rendering. - * We're keeping it around as a reference. - * - * 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. - */ - - -#if 0 -// 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, "