SET_COOKIE +$((86400 * 90)) pagesize="$(POST pagesize |grep -m1 -xE '[1-9][0-9]*' || printf 50)"
SET_COOKIE +$((86400 * 90)) fakemp4="$(POST fakemp4 |grep -m1 -xE 'yes' || printf no)"
printf 'Location: %s\r\n\r\n' "$(POST ref)"
+ exit 0
;;
esac
-if [ -f "$_DATA/$item" ]; then
+if [ "$item" = "/style.css" ]; then
+ . "$_EXEC/cgilite/file.sh"
+ [ -r "$_DATA/$item" ] && FILE "$_DATA/$item" \
+ || FILE "$_EXEC/style.css"
+elif [ -f "$_DATA/$item" ]; then
case $(GET a) in
tag)
;;
- download)
- ;;
thumbnail)
;;
delete)
;;
- *)
+ *) . "$_EXEC/cgilite/file.sh"
+ FILE "$_DATA/$item"
;;
esac
elif [ -d "$_DATA/$item" ]; then
case $(GET a) in
multitag)
;;
- *) printf 'Content-Type: text/html;charset=utf-8\r\n\r\n'
- "$_EXEC/cgilite/html-sh.sed" <<-EOF
- [!DOCTYPE HTML]
- [html [head [title Listing]
- ] [body
- $(w_search) $(w_prefs)
- ] ]
- EOF
- exit 0
+ *) . "$_EXEC/list.sh"
;;
esac
else