]> git.plutz.net Git - serve0/blobdiff - index.cgi
Implemented video view page with stereoscopic options
[serve0] / index.cgi
index 6b0dc549d6676f53491e28adca926666e008e4f3..421b81e95ece53ff9c0c58f096518b596062bb0c 100755 (executable)
--- 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