diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-18 10:37:45 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-18 10:37:45 +0200 |
commit | ae9b583b9575679f129680a0f56163fdb6590052 (patch) | |
tree | 75feb531a4a3cad7ba6ce1de217f1c658531da39 /t/post.tc | |
parent | f8ef7e4a7c538bf392237c6c29caa9dedca6e29e (diff) | |
download | cforum-ae9b583b9575679f129680a0f56163fdb6590052.tar.gz |
Clean up
Diffstat (limited to 't/post.tc')
-rw-r--r-- | t/post.tc | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/t/post.tc b/t/post.tc deleted file mode 100644 index 4453246..0000000 --- a/t/post.tc +++ /dev/null @@ -1,54 +0,0 @@ -#include "head.tc" -printf("\n<h1>Post "); -printf("%d", id); -printf(": "); -printf("%s", post->subject ); -printf("</h1>\n<p>From: "); -printf("%s", user->full? user->full: "" ); -printf("\n"); -if(user->full) printf("<"); -printf("<a href=\"?user="); -printf("%d", user->id); -printf("\">"); -printf("%s", user->name ); -printf("</a>"); -if(user->full) printf(">"); -printf("\n<br>Date: "); -printdate(post->created); -printf("\n"); -if(post->edited){ - printf("<br>Edited: "); - printdate(post->edited); -} -printf("\n"); -if(post->parent){ -printf("\n<br>In Reply To: <a href=\"?post="); -printf("%d", post->parent); -printf("\">"); -printf("%d", post->parent); -printf("</a>\n"); -} -printf("\n<pre>\n"); -printf("%s", post->text ); -printf("\n</pre>\n"); -if(attachment = getattachment(stmt, 0)){ - -printf("\n<h3>Attachments</h3>\n<table border=\"1\">\n "); - do{ - -printf("\n <tr>\n <td><a href=\"?attachment="); -printf("%d", attachment->id); -printf("\">"); -printf("%s", attachment->name ); -printf("</a></td>\n <td>"); -printf("%s", attachment->mime ); -printf("</td>\n <td>"); -printf("%s", attachment->description ); -printf("</td>\n </tr>\n "); - }while(attachment = getattachment(stmt, 0)); - -printf("\n</table>\n"); -} - -printf("\n"); -#include "foot.tc" |