X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=constants.sh;h=76129395f75e1e28e8dc6a59de4f4978d9b7ef99;hp=2636e0bd0a5cb8d6aaa1ef48d566896143d549d4;hb=HEAD;hpb=f485895094cd72318b46f39689c3ba954eb37411 diff --git a/constants.sh b/constants.sh index 2636e0b..7612939 100755 --- a/constants.sh +++ b/constants.sh @@ -1,6 +1,6 @@ #!/bin/zsh -# Copyright 2014 Paul Hänsch +# Copyright 2014,2015 Paul Hänsch # # This file is part of Confetti. # @@ -17,15 +17,18 @@ # You should have received a copy of the GNU Affero General Public License # along with Confetti. If not, see . +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#" -_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