X-Git-Url: http://git.plutz.net/?p=serve0;a=blobdiff_plain;f=index.cgi;fp=index.cgi;h=1b84d2f436f149a742e11494b592c27a3e9a7b0b;hp=d16e87482594dbfe05fec0f086926dabf3f2b8a9;hb=5feb36c907d3a475363a573fcc52d7219e623bdf;hpb=8fa27d850ad8f2577a6ce94f895ec1bca88e3bfa diff --git a/index.cgi b/index.cgi index d16e874..1b84d2f 100755 --- a/index.cgi +++ b/index.cgi @@ -90,22 +90,26 @@ case $ACTION in fi;; esac -case $PATH_INFO in - /style.css) - . "$_EXEC/cgilite/file.sh" - [ -r "$_DATA/$PATH_INFO" ] \ - && FILE "$_DATA/$PATH_INFO" \ - || FILE "$_EXEC/style.css" - return 0 - ;; - /stereoview.js) - . "$_EXEC/cgilite/file.sh" - FILE "$_EXEC/stereoview.js" - return 0 - ;; -esac +# case $PATH_INFO in +# /style.css) +# . "$_EXEC/cgilite/file.sh" +# [ -r "$_DATA/$PATH_INFO" ] \ +# && FILE "$_DATA/$PATH_INFO" \ +# || FILE "$_EXEC/style.css" +# return 0 +# ;; +# /stereoview.js) +# . "$_EXEC/cgilite/file.sh" +# FILE "$_EXEC/stereoview.js" +# return 0 +# ;; +# esac -if [ -f "$_DATA/$PATH_INFO" ]; then +if [ -f "$_EXEC/$PATH_INFO" ]; then + . "$_EXEC/cgilite/file.sh" + FILE "$_EXEC/$PATH_INFO" + return 0 +elif [ -f "$_DATA/$PATH_INFO" ]; then . "$_EXEC/view.sh" return 0 elif [ -d "$_DATA/$PATH_INFO" ]; then