X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=constants.sh;h=76129395f75e1e28e8dc6a59de4f4978d9b7ef99;hp=36af54681c1a72bde323d839c08e4ac8a9044546;hb=HEAD;hpb=3dc2211d159746a8a0475c3be163cb992b5380af
diff --git a/constants.sh b/constants.sh
index 36af546..7612939 100755
--- a/constants.sh
+++ b/constants.sh
@@ -22,12 +22,13 @@ data_dirs Home Tasks Wiki QRcodes
umask=002
#alias _wiki="stx2any --no-template --link-abbrevs --quote -T html"
_wiki(){
- markdown $* |sed -r 's:<(h[1-6])>(.+):<\1>\2\1>:g'
+ #markdown $* |sed -r 's:<(h[1-6])>(.+):<\1>\2\1>:g'
+ pandoc -f markdown -t html "$@" |sed -r 's:<(h[1-6])>(.+):<\1>\2\1>:g'
}
LOGIN=false
USER="#NONE#"
-_GET["p"]=Home
+[ -z "${_GET[p]}" ] && _GET[p]=Home
sessfile="$_DATA/auth/session$(sed -rn 's:^.*session=([a-zA-Z0-9]{32}).*$:\1:p' <<<"$HTTP_COOKIE")"
if [ -r "$sessfile" ]; then