X-Git-Url: http://git.plutz.net/?p=serve0;a=blobdiff_plain;f=index.cgi;h=421b81e95ece53ff9c0c58f096518b596062bb0c;hp=6b0dc549d6676f53491e28adca926666e008e4f3;hb=2515c4e19a1daf3c166c446ba97979f4bfebed26;hpb=1902cbbff7f9728f303cdb5e3fc37b18eddff4db diff --git a/index.cgi b/index.cgi index 6b0dc54..421b81e 100755 --- a/index.cgi +++ b/index.cgi @@ -48,6 +48,9 @@ if [ "$ITEM" = "/style.css" ]; then . "$_EXEC/cgilite/file.sh" [ -r "$_DATA/$ITEM" ] && FILE "$_DATA/$ITEM" \ || FILE "$_EXEC/style.css" +elif [ "$ITEM" = "/stereoview.js" ]; then + . "$_EXEC/cgilite/file.sh" + FILE "$_EXEC/stereoview.js" elif [ -f "$_DATA/$ITEM" ]; then case $ACTION in tag) @@ -62,10 +65,11 @@ elif [ -f "$_DATA/$ITEM" ]; then ;; delete) ;; - *) . "$_EXEC/cgilite/file.sh" + download) . "$_EXEC/cgilite/file.sh" fakemp4="$(COOKIE fakemp4)" FILE "$_DATA/$ITEM" "$([ "$fakemp4" = yes ] && printf 'video/mp4')" ;; + *) . "$_EXEC/view.sh" esac elif [ -d "$_DATA/$ITEM" ]; then case $ACTION in