From: paul Date: Sun, 1 Dec 2013 15:35:00 +0000 (+0000) Subject: improved style, beautified URL display X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=25a24a7d834757e006b46b863453d5f79780a63f;p=confetti improved style, beautified URL display svn path=/trunk/; revision=29 --- diff --git a/actions/filter_attendee.sh b/actions/filter_attendee.sh new file mode 100755 index 0000000..1cb074c --- /dev/null +++ b/actions/filter_attendee.sh @@ -0,0 +1,15 @@ +#!/bin/zsh + +cgi_post + +case "$_POST[\"choice\"]"; in + new_filter) + filter="$_POST[\"filter\"]" + filtertype="$_POST[\"filtertype\"]" + order="$_POST[\"order\"]" + echo -n "Location: http://$HTTP_HOST/?page=attendees&filter=$filter&filtertype=$filtertype&order=$order\n\n" + ;; + *) + echo -n "Location: http://$HTTP_HOST/?page=attendees\n\n" + ;; +esac diff --git a/index.cgi b/index.cgi index a7edbb1..1721280 100755 --- a/index.cgi +++ b/index.cgi @@ -15,12 +15,8 @@ debug() { #change to false to disable debugging # we will use the http root as object storage (data directory) and call sub # programs from the directory in which the real executable resides # therefore we need to identify the code and data directories _EXEC and _DATA -call=$0 -real=$call -while [ -L "$real" ]; do - real="$(stat -c %N "$real" |sed -r "s:..*. -> .(.*).$:\1:")" -done - +call="$0" +real="$(readlink -f $call)" _EXEC="$(dirname "$real")" #execution directory _DATA="$(dirname "$call")" #storage directory diff --git a/pages/attendees.sh b/pages/attendees.sh index e3e27c2..dfa7dfb 100755 --- a/pages/attendees.sh +++ b/pages/attendees.sh @@ -1,6 +1,5 @@ #!/bin/sh -[ "$_GET[\"choice\"]" = "del_filter" ] && _GET["filter"]="" && _GET["filtertype"]="" listcards() { case "$_GET[\"filtertype\"]" in any) diff --git a/templates/attendees.css.sh b/templates/attendees.css.sh index 955e89e..2639fdb 100644 --- a/templates/attendees.css.sh +++ b/templates/attendees.css.sh @@ -5,7 +5,8 @@ cat < $(l10n filter_label) -