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/front.tc | |
parent | f8ef7e4a7c538bf392237c6c29caa9dedca6e29e (diff) | |
download | cforum-ae9b583b9575679f129680a0f56163fdb6590052.tar.gz |
Clean up
Diffstat (limited to 't/front.tc')
-rw-r--r-- | t/front.tc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/t/front.tc b/t/front.tc deleted file mode 100644 index 4ee561a..0000000 --- a/t/front.tc +++ /dev/null @@ -1,22 +0,0 @@ -#include "head.tc" -printf("\n<h1>"); -printf("%s", site.name ); -printf("</h1>\n<h3>Latest posts</h3>\n<table border=\"1\">\n "); - while(post = getpost(stmt, 0)){ - user = getuser(byid("users", post->user), 1); - -printf("\n <tr>\n <td><a href=\"?post="); -printf("%d", post->id); -printf("\">"); -printf("%s", post->subject ); -printf("</a></td>\n <td><a href=\"?user="); -printf("%d", post->user); -printf("\">"); -printf("%s", user->name ); -printf("</a></td>\n <td>"); -printdate(post->created); -printf("</td>\n </tr>\n "); - } - -printf("\n</table>\n"); -#include "foot.tc" |