From 7d65ce8c8e304dc8367f4492948514f2acc07a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 17 Sep 2021 23:47:58 +0200 Subject: Whatever --- t/front.tc | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) (limited to 't/front.tc') diff --git a/t/front.tc b/t/front.tc index d7afb7b..f95d8cb 100644 --- a/t/front.tc +++ b/t/front.tc @@ -1,17 +1,29 @@ -printf("

"); +#include "head.tc" +printf("\n

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

\n

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

\n\n \n \n \n \n "); - char *p, *v; - while(p = nextparam(GET, 512)){ - v = split(p); +printf(" request!

\n
KeyValue
\n "); + struct post *post; + struct user *user; -printf("\n \n \n \n \n "); + while(post = getpost(stmt, 0)){ + user = getuser(byid("users", post->user), 1); + +printf("\n \n \n \n \n "); } -printf("\n
"); -printf("%s", p ); -printf(""); -printf("%s", v ); -printf("
user); +printf("\">"); +printf("%s", + user->name + ); +printf("id); +printf("\">"); +printf("%s", + post->subject + ); +printf("
"); +printf("\n\n"); +#include "foot.tc" -- cgit v1.2.3