From f0b72e0a2f0d55ea9ff8a36ba7d766ff0b1dc71c Mon Sep 17 00:00:00 2001 From: "psyc://loupsycedyglgamf.onion/~lynX" Date: Mon, 18 Jan 2021 20:52:08 +0100 Subject: [PATCH] place offering an evaluation form via web --- place/rating.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 place/rating.c diff --git a/place/rating.c b/place/rating.c new file mode 100644 index 0000000..add8f82 --- /dev/null +++ b/place/rating.c @@ -0,0 +1,66 @@ +#include +#include +#include + +#define NAME "rating" +#define PRIVATE +#define SECURE +#include + +#define RATING_TITLE "This is a demonstration of psyced's rating tool" +#define RATING_ITEMS 3 +#define RATING_ITEM_HEIGHT 100 +#define DEFAULT_RATING_AMOUNT 5 +#define RATING_UNIFORM_PREFIX "https://www.psyced.org/rating/" + +// hack, should be using w() instead +#define htfs(BLA) write("
"+ BLA +"