X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=categories%2Findex.cgi;fp=categories%2Findex.cgi;h=0000000000000000000000000000000000000000;hb=40eb3d2b20ea87bc832fcf60e013c6a214354cd0;hp=236b1e3abb24b41149f00501427793135be875b0;hpb=e039a460402b12988170c50f9a57b90af3183ed7;p=lobster
diff --git a/categories/index.cgi b/categories/index.cgi
deleted file mode 100755
index 236b1e3..0000000
--- a/categories/index.cgi
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-# Copyright 2015, 2017, 2018, 2021 Paul Hänsch
-#
-# This file is part of Confetti.
-#
-# Confetti is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Confetti is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with Confetti. If not, see .
-
-. $_EXEC/pdiread.sh
-. $_EXEC/categories/l10n.sh
-
-catfile="${_DATA}/mappings/categories"
-
-list_categories() {
- grep -vxE '[ ]*' "$catfile" |sort -u
-}
-
-list_catsel(){
- local vcf="$1" card="$2" n=1 cats="${BR}"
- while cats="${cats}${BR}$(pdi_value "$vcf" CATEGORIES $n)"; do n=$((n + 1)); done
-
- list_categories |while read cat; do
- printf '[li [label [input %s type="checkbox" name="%s" value="%s"] %s]]' \
- "$([ "${cats%*${BR}${cat}${BR}*}" != "$cats" ] && printf checked=checked)" \
- "$(HTML "$card")" "$(HTML "$cat")" "$(HTML "$cat")"
- done
-}
-
-cat <