From 9ff1b81d65c370a938cd9d9c033e04e395f00704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 18 Sep 2021 22:51:30 +0200 Subject: New user --- t/front.t | 3 +++ t/head.t | 8 ++++++++ t/newuser.t | 35 +++++++++++++++++++++++++++++++++++ t/post.t | 2 +- 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 t/newuser.t (limited to 't') diff --git a/t/front.t b/t/front.t index 9d39469..2662be2 100644 --- a/t/front.t +++ b/t/front.t @@ -1,5 +1,8 @@ <% #include "head.tc" %>

<%= site.name %>

+

Latest posts

<% while(post = nextpost(pstmt)){ diff --git a/t/head.t b/t/head.t index d9da813..7962c5b 100644 --- a/t/head.t +++ b/t/head.t @@ -3,5 +3,13 @@ <%= title %> + \ No newline at end of file diff --git a/t/newuser.t b/t/newuser.t new file mode 100644 index 0000000..a0a0dd9 --- /dev/null +++ b/t/newuser.t @@ -0,0 +1,35 @@ +<% #include "head.tc" %> +

New User

+<% if(*msg){ %> +

<%= msg %>

+<% } %> +" action="?new=user" method="POST"> +
+ + + + + + + + + + + + + + + + + +
">
">(optional)
+

By clicking Create, you confirm

+
    +
  1. that this user is a real human,
  2. +
  3. that you will not abuse the service,
  4. +
  5. that the information you provide will be saved on the server, and
  6. +
  7. that your user may be terminated by an administrator at any point and for any reason.
  8. +
+

+ +<% #include "foot.tc" %> \ No newline at end of file diff --git a/t/post.t b/t/post.t index 1e3d360..e30ddbe 100644 --- a/t/post.t +++ b/t/post.t @@ -20,7 +20,7 @@ id); %>"><%= att->name %> <%= att->mime %> - <%= att->description %> + <%= att->desc %> <% free(att); }while(att = nextatt(stmt)); %> -- cgit v1.2.3