-if [ "$_PATH" = "/therapies/therapy.css" ]; then
- . $_EXEC/cgilite/file.sh
- FILE $_EXEC/therapies/therapy.css
- return 0
-fi
+case "$_PATH" in
+ /therapies/therapy.css)
+ . $_EXEC/cgilite/file.sh
+ FILE $_EXEC/therapies/therapy.css
+ return 0
+ ;;
+ /therapies/*.*_session*.png)
+ if [ -r "$_DATA/$_PATH" ]; then
+ . $_EXEC/cgilite/file.sh
+ FILE "$_DATA/$_PATH"
+ fi
+ return 0
+ ;;
+esac