From de6b0f3e3734dd0a07100d58092d3139c7c316a1 Mon Sep 17 00:00:00 2001 From: jan6 Date: Fri, 24 Dec 2021 00:15:43 +0200 Subject: [PATCH] added banned users page --- build.sh | 6 ++++++ src/banned.md | 5 +++++ users.sh | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/banned.md diff --git a/build.sh b/build.sh index 5ff7d9b..3f96cf5 100755 --- a/build.sh +++ b/build.sh @@ -72,6 +72,9 @@ done echo "creating user list page.." ./users.sh|markdown| + if [ "$no_ext" = "1" ];then + sed -e 's|\(|\1\2">|g' + else cat;fi | cat "$header" - "$footer_start" > dist/users.html mdate "dist/users.html" "Last Generated: "| cat - "$footer_end" >> dist/users.html @@ -79,6 +82,9 @@ echo "creating user list page.." echo "creating index page.." ./users.sh| cat src/index.md -|markdown| + if [ "$no_ext" = "1" ];then + sed -e 's|\(|\1\2">|g' + else cat;fi | cat "$header" - "$footer_start" > dist/index.html mdate "dist/index.html" "Last Generated: "| cat - "$footer_end" >> dist/index.html diff --git a/src/banned.md b/src/banned.md new file mode 100644 index 0000000..8097d2f --- /dev/null +++ b/src/banned.md @@ -0,0 +1,5 @@ +#banned users list +* mrv + ban reason: abusing vulnerabilities + banned for: + banned by : jan6 diff --git a/users.sh b/users.sh index 4819e40..f21025f 100755 --- a/users.sh +++ b/users.sh @@ -8,6 +8,6 @@ do if [ "$(stat -c %G "/home/$user")" != "banned" ];then echo "[~$user](/~$user) "; else - echo "~$user (banned) "; + echo "~$user ([banned](banned.html#$user)) "; fi done