X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=index.cgi;h=a33211d6653adbc4fc2980e4d0077277069abc06;hb=608e267413cf7f8399cacbbfc4269d3c3820a3aa;hp=eebe10633301346ba89430233211b9803d2b4e1d;hpb=1bac890e2bd4a6998794f0fcb3b02409279389c2;p=serve0 diff --git a/index.cgi b/index.cgi index eebe106..a33211d 100755 --- a/index.cgi +++ b/index.cgi @@ -15,7 +15,7 @@ file_pattern='^.*\.(mov|ts|mpg|mpeg|mp4|m4v|avi|mkv|flv|sfv|wmv|ogm|ogv|webm|iso FILTER="$(GET f)" SEARCH="$(GET s)" -ORDER="$(GET o |grep -m1 -axE 'Date|Name|Length' || printf Name)" +ORDER="$(GET o |grep -m1 -axE 'Date|Name|Length|Group' || printf Name)" LISTSIZE="$(COOKIE pagesize |grep -m1 -axE '[1-9][0-9]*' || printf 50)" ITEM="$(PATH "${PATH_INFO#/}")" ACTION="$(GET a)" @@ -26,6 +26,7 @@ case $ACTION in SET_COOKIE +$((86400 * 90)) mode="$(POST mode |grep -m1 -axE 'browse|index' || printf browse)" SET_COOKIE +$((86400 * 90)) fakemp4="$(POST fakemp4 |grep -m1 -axE 'yes' || printf no)" SET_COOKIE +$((86400 * 90)) downscale="$(POST downscale |grep -m1 -axE 'yes' || printf no)" + [ "$(POST index)" = "update" ] && touch -cd @0 "${_DATA}/.index/meta.time" REDIRECT "$(POST ref)" ;; bookmark)