#!/bin/zsh
-# Copyright 2014 Paul Hänsch
+# Copyright 2014, 2016 Paul Hänsch
#
# This file is part of Confetti.
#
pdflatex="$(where pdflatex |head -n1 || echo false)"
course="${_GET[course]}"
-fromdate=$_GET['fromdate']
+fromdate=$_GET[fromdate]
fromdate=$(date -d "$fromdate" +%s)
[ -z "$fromdate" ] && fromdate=$(date +%s)
-. ${_EXEC}/pages/courses.sh loadfunctions
-. ${_EXEC}/pages/card.sh loadfunctions
+. ${_EXEC}/pages/courses.sh
+. ${_EXEC}/pages/cards.sh
tex_clean() { #in dire need for improvement
- echo "$*" |tr -d '{&}\'
+ echo "$*" |tr -d '{&}\\'
}