#!/bin/sh
exec 2>/dev/null
-for n in "$@"; do case ${n%%=*} in
- data) _DATA="${n#data=}";;
- exec) _exec="${n#exec=}";;
- noerr) exec 2>&-;;
-esac; done
-
-[ -z "${_EXEC%/}" ] && _EXEC="$(realpath "${0%/*}")" || _EXEC="${_EXEC%/}"
-[ -z "${_DATA%/}" ] && _DATA=. || _DATA="${_DATA%/}"
-
file_pattern='^.*\.(mov|ts|mpg|mpeg|mp4|m4v|avi|mkv|flv|sfv|wmv|ogm|ogv|webm|iso|rmvb)$'
-. "$_EXEC/cgilite/cgilite.sh"
+. "${_EXEC:-${0%/*}}/cgilite/cgilite.sh"
FILTER="$(GET f)"
SEARCH="$(GET s)"