X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=constants.sh;fp=constants.sh;h=76129395f75e1e28e8dc6a59de4f4978d9b7ef99;hp=590c968e9941b06ecae54248d72fe6c056c8447f;hb=5940c0b0af8a0e7793ad77c17c9415ce5b7f8859;hpb=e6133c890222e735b322df23f5931c59cea06ae6 diff --git a/constants.sh b/constants.sh index 590c968..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:g' + #markdown $* |sed -r 's:<(h[1-6])>(.+):<\1>\2:g' + pandoc -f markdown -t html "$@" |sed -r 's:<(h[1-6])>(.+):<\1>\2:g' } LOGIN=false USER="#NONE#" -[ -z "$_GET[\"p\"]" ] && _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