From 24bf14f6653ebf1c1ba79b9f212d35417bb6acbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 18 Sep 2021 01:52:04 +0200 Subject: Implement attachments --- t/front.tc | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 't/front.tc') diff --git a/t/front.tc b/t/front.tc index f95d8cb..9bed8a1 100644 --- a/t/front.tc +++ b/t/front.tc @@ -1,28 +1,24 @@ #include "head.tc" printf("\n

"); printf("%s", site.name ); -printf("

\n

Thanks for the "); -printf("%s", getenv("REQUEST_METHOD") ); -printf(" request!

\n\n "); +printf("\n

Latest posts

\n
\n "); struct post *post; struct user *user; while(post = getpost(stmt, 0)){ user = getuser(byid("users", post->user), 1); -printf("\n \n \n \n \n "); +printf("%s", post->subject ); +printf("\n \n \n \n "); } printf("\n
user); -printf("\">"); -printf("%s", - user->name - ); -printf("\n id); printf("\">"); -printf("%s", - post->subject - ); -printf("
user); +printf("\">"); +printf("%s", user->name ); +printf(""); +printdate(post->created); +printf("
\n"); -- cgit v1.2.3