]> git.plutz.net Git - busy/blobdiff - constants.sh
adapt default m=page mechanism to updated cgi engine
[busy] / constants.sh
index 2636e0bd0a5cb8d6aaa1ef48d566896143d549d4..590c968e9941b06ecae54248d72fe6c056c8447f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/zsh
 
-# Copyright 2014 Paul Hänsch
+# Copyright 2014,2015 Paul Hänsch
 #
 # This file is part of Confetti.
 # 
@@ -17,6 +17,8 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
+data_dirs Home Tasks Wiki QRcodes
+
 umask=002
 #alias _wiki="stx2any --no-template --link-abbrevs --quote -T html"
 _wiki(){
@@ -25,7 +27,7 @@ _wiki(){
 
 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