X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Findex.cgi;h=933b1d188c1a5aea53876e77c40139ea00681ef1;hp=6f44168fa0914e239a086a05bf0b9ee26b4481a7;hb=56ca6f3f99709aca8e77aa35071ba7097e8083c7;hpb=1b5fe5ec8e6ceb580ada4e0ff4fe3955c2457ec0 diff --git a/cards/index.cgi b/cards/index.cgi index 6f44168..933b1d1 100755 --- a/cards/index.cgi +++ b/cards/index.cgi @@ -1,26 +1,20 @@ #!/bin/sh -if [ "$_PATH" = "/cards/cards.css" ]; then - . $_EXEC/cgilite/file.sh - FILE $_EXEC/cards/cards.css - return 0 -fi - . $_EXEC/pdiread.sh . $_EXEC/cards/l10n.sh . $_EXEC/cards/widgets.sh . $_EXEC/cards/list.sh -unescape() { [ $# = 0 ] && sed -E 's;\\(.);\1;g' || printf %s "$*" |sed -E 's;\\(.);\1;g'; } upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' filter="$(GET f)" order="$(GET o)" -edit="$(GET e)" +edit="$(GET e |PATH)" + [ "$order" ] || order=firstname +edit="${edit##*/}" { w_filter_diag - printf ' [form class="newcard" action="/cards/new_card.sh" method="POST" [button type="submit" %s] @@ -28,4 +22,4 @@ edit="$(GET e)" [ "$edit" ] && edit_card "$edit" list_cards -} | yield_page cards /cards/cards.css +} | yield_page cards #/cards/cards.css