X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Fmain.cgi;h=6f44168fa0914e239a086a05bf0b9ee26b4481a7;hp=3cf8a23e0b1889a5418083a1ae1878d9124fdbe4;hb=11e258b8e6cf832c96b20648aa8c9ca0288c597f;hpb=6655ac8dd9a786d394d628fed0fbc6e6008078c1 diff --git a/cards/main.cgi b/cards/main.cgi index 3cf8a23..6f44168 100755 --- a/cards/main.cgi +++ b/cards/main.cgi @@ -1,12 +1,9 @@ #!/bin/sh -if [ "$ITEM" = "cards/cards.css" ]; then +if [ "$_PATH" = "/cards/cards.css" ]; then . $_EXEC/cgilite/file.sh FILE $_EXEC/cards/cards.css return 0 -elif [ "$(GET action)" = filter_card ]; then - . $_EXEC/cards/filter_card.sh - exit 0 fi . $_EXEC/pdiread.sh @@ -14,27 +11,21 @@ fi . $_EXEC/cards/widgets.sh . $_EXEC/cards/list.sh -filter="$(GET filter)" -order="$(GET order)" +unescape() { [ $# = 0 ] && sed -E 's;\\(.);\1;g' || printf %s "$*" |sed -E 's;\\(.);\1;g'; } +upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' -printf 'Content-Type: text/html; charset=utf-8\r\n\r\n' +filter="$(GET f)" +order="$(GET o)" +edit="$(GET e)" +[ "$order" ] || order=firstname -{ cat <