From ae9b583b9575679f129680a0f56163fdb6590052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 18 Sep 2021 10:37:45 +0200 Subject: Clean up --- t/err.tc | 7 ------- t/foot.tc | 1 - t/front.tc | 22 ---------------------- t/head.tc | 3 --- t/post.tc | 54 ------------------------------------------------------ t/user.tc | 7 ------- 6 files changed, 94 deletions(-) delete mode 100644 t/err.tc delete mode 100644 t/foot.tc delete mode 100644 t/front.tc delete mode 100644 t/head.tc delete mode 100644 t/post.tc delete mode 100644 t/user.tc (limited to 't') diff --git a/t/err.tc b/t/err.tc deleted file mode 100644 index c066a5a..0000000 --- a/t/err.tc +++ /dev/null @@ -1,7 +0,0 @@ -#include "head.tc" -printf("\n

"); -printf("%s", title ); -printf("

\n

"); -printf("%s", err ); -printf("

\n"); -#include "foot.tc" diff --git a/t/foot.tc b/t/foot.tc deleted file mode 100644 index 927824c..0000000 --- a/t/foot.tc +++ /dev/null @@ -1 +0,0 @@ -printf("\n"); 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

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

\n

Latest posts

\n\n "); - while(post = getpost(stmt, 0)){ - user = getuser(byid("users", post->user), 1); - -printf("\n \n \n \n \n \n "); - } - -printf("\n
id); -printf("\">"); -printf("%s", post->subject ); -printf("user); -printf("\">"); -printf("%s", user->name ); -printf(""); -printdate(post->created); -printf("
\n"); -#include "foot.tc" diff --git a/t/head.tc b/t/head.tc deleted file mode 100644 index c19b483..0000000 --- a/t/head.tc +++ /dev/null @@ -1,3 +0,0 @@ -printf("\n\n\n\n"); -printf("%s", title ); -printf("\n\n"); 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

Post "); -printf("%d", id); -printf(": "); -printf("%s", post->subject ); -printf("

\n

From: "); -printf("%s", user->full? user->full: "" ); -printf("\n"); -if(user->full) printf("<"); -printf("id); -printf("\">"); -printf("%s", user->name ); -printf(""); -if(user->full) printf(">"); -printf("\n
Date: "); -printdate(post->created); -printf("\n"); -if(post->edited){ - printf("
Edited: "); - printdate(post->edited); -} -printf("\n"); -if(post->parent){ -printf("\n
In Reply To: parent); -printf("\">"); -printf("%d", post->parent); -printf("\n"); -} -printf("\n

\n");
-printf("%s",  post->text );
-printf("\n
\n"); -if(attachment = getattachment(stmt, 0)){ - -printf("\n

Attachments

\n\n "); - do{ - -printf("\n \n \n \n \n \n "); - }while(attachment = getattachment(stmt, 0)); - -printf("\n
id); -printf("\">"); -printf("%s", attachment->name ); -printf(""); -printf("%s", attachment->mime ); -printf(""); -printf("%s", attachment->description ); -printf("
\n"); -} - -printf("\n"); -#include "foot.tc" diff --git a/t/user.tc b/t/user.tc deleted file mode 100644 index 3527acb..0000000 --- a/t/user.tc +++ /dev/null @@ -1,7 +0,0 @@ -#include "head.tc" -printf("\n

User "); -printf("%d", id); -printf(": "); -printf("%s", user->name ); -printf("

\n"); -#include "foot.tc" -- cgit v1.2.3