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=e9964265b1d05b25c2855518469dca6bf4723c11;hpb=fd396aeb6d3e10be928dd899ae228147b1728fb3;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 e9964265b..000000000 --- a/webcit-ng/old_threaded_view_save_for_reference.c +++ /dev/null @@ -1,286 +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. It runs great on the -// Linux operating system (and probably elsewhere). You can use, -// copy, and run 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, "