diff options
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" |