]> git.plutz.net Git - serve0/blobdiff - constants.sh
adapted to update in shcgi
[serve0] / constants.sh
index 36c85bca7caa1b01f35bebd662815a699f33374d..89236b1e9efb528e0b13b2fc581ed4d67a86b370 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/zsh
 
-# Copyright 2014 Paul Hänsch
+# Copyright 2014,2015 Paul Hänsch
 #
 # This file is part of Serve0.
 # 
@@ -18,6 +18,8 @@
 # along with Serve0.  If not, see <http://www.gnu.org/licenses/>. 
 
 alias _wiki="stx2any --no-template --link-abbrevs --quote -T html"
-[ -z "$_GET[\"page\"]" ] && _GET["page"]=list
+[ -z "${_GET[p]}" ] && _GET[p]=list
 pagesize=100
 file_pattern='^.*(mov|ts|mpg|mpeg|mp4|m4v|avi|mkv|flv|sfv|wmv|ogm|webm|iso|rmvb)$'
+
+data_dirs cache meta mp4 videos thumbs trash by_length transcoded