From 110342591208746d1c73caf22615899f8846e584 Mon Sep 17 00:00:00 2001
From: LDA
Date: Thu, 25 Jul 2024 16:38:58 +0200
Subject: [PATCH] [MOD/ADD] Get rid of pre, modify /, and tools
Right now, only adminify exists, if you dare to build it yourself that
is...
---
.gitignore | 3 ++
LICENSE | 2 +-
src/Routes/Root.c | 25 +++++++--
src/XEP-0393.c | 12 ++++-
src/include/XEP393.h | 3 +-
tools/Makefile | 35 ++++++++++++
tools/adminify.c | 123 +++++++++++++++++++++++++++++++++++++++++++
7 files changed, 196 insertions(+), 7 deletions(-)
create mode 100644 tools/Makefile
create mode 100644 tools/adminify.c
diff --git a/.gitignore b/.gitignore
index 2dc89de..2ac11a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,6 @@ parsee
.*
data
data/*
+
+tools/out
+tools/out/*
diff --git a/LICENSE b/LICENSE
index d4c693c..56fdd03 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-For the files src/XML/*, src/include/XML.h, and Makefile, see COPYING.CC0
+For the files src/XML/*, tools/*, src/include/XML.h, and Makefile, see COPYING.CC0
For the file src/Signal.c, it is based on Telodendria, which requires COPYING.TELO
to be present.
For any other file in src/, see COPYING.AGPL as the primary license.
diff --git a/src/Routes/Root.c b/src/Routes/Root.c
index db57b7e..fba70b9 100644
--- a/src/Routes/Root.c
+++ b/src/Routes/Root.c
@@ -9,6 +9,7 @@
RouteHead(RouteRoot, arr, argp)
{
ParseeHttpArg *args = argp;
+ const ParseeConfig *config = args->data->config;
const char *quote = RandInt(2) ?
"Kinda jealous of that, to be fair." :
"Why look inward when you can challenge the mainstream media?";
@@ -29,6 +30,7 @@ RouteHead(RouteRoot, arr, argp)
P(" html {");
P(" background-color: #222;");
P(" color: #eee;");
+ P(" font-family: sans-serif;");
P(" }");
P(" blockquote {");
P(" border-left: 2px solid #ccc;");
@@ -65,9 +67,24 @@ RouteHead(RouteRoot, arr, argp)
P(" href='https://kappach.at/parsee'");
P(" >the actual page.");
P("
");
+ P(" Permissions?
");
+ P(" ");
+ P(" If you have problems running commands, you may want to ");
+ P(" look into if you have set yourself as an admin.");
+ P("
");
+ P(" If you happen to have a build-from-source copy of %s,", NAME);
+ P(" please build all utilities and run ");
+ P(" tools/out/adminify '%s' '[glob]'.", config->db_path);
+ P("
");
P(" Extra information
");
P(" ");
+ P("
Dev documentations!!!!
");
+ P(" Developers may be interested into looking up the ");
+ P(" at.kappach.at ");
+ P(" page for extensions used by Parsee on Matrix. ");
+ P(" ");
+ P(" ");
P("
Parsee statistics
");
P("");
P("Software: %s (v%s/Cyto %s)\n", NAME, VERSION, CytoplasmGetVersionStr());
@@ -79,13 +96,13 @@ RouteHead(RouteRoot, arr, argp)
P(" ");
P(" - Repository
", REPOSITORY);
P(" - Fediverse
", "https://ak.ari.lt/parsee");
- P(" 
", "https://kappach.at/parsee.gif");
+ P(" - CC0 88x31:

", "https://kappach.at/parsee.gif");
P("
");
P(" ");
- P(" ");
+ P("
");
P(" Good luck, and have fun! :D");
- P("
");
- P(" —LDA
");
+ P("
");
+ P(" — LDA
");
P("