X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=pages%2Fcourses.sh;fp=pages%2Fcourses.sh;h=14d1713c9eb8b3b471d402501cb3a3fe9f42a0fb;hp=ae81ccfbabd4f2d8aaf010daa421dd7ea6152141;hb=4e49d483fd5121fda86a33cf583c15afa6556ad1;hpb=10dc80cb808b22e1ffe613b3a6b5ec82691b08dc diff --git a/pages/courses.sh b/pages/courses.sh index ae81ccf..14d1713 100755 --- a/pages/courses.sh +++ b/pages/courses.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU Affero General Public License # along with Confetti. If not, see . -[ -z "$_GET[\"order\"]" ] && _GET["order"]=DOW +[ -z "${_GET[order]}" ] && _GET[order]=DOW listcards() { ls -1 ${_DATA}/vcard/*vcf 2>/dev/null |while read file; do @@ -28,10 +28,10 @@ listcards() { listcourses() { - case "$_GET[\"filtertype\"]" in + case "${_GET[filtertype]}" in *) ls -1 ${_DATA}/ical/*ics 2>/dev/null ;; - esac |case "$_GET[\"order\"]" in + esac |case "${_GET[order]}" in DOW) while read file; do icstime="$(sed -rn 's:^DTSTART\:(TZID=.*\:)?([0-9]{4})([0-9]{2})([0-9]{2})T([0-9]{2})([0-9]{2})([0-9]{2})Z?\r$:\2-\3-\4 \5\:\6\:\7:p' "$file")"