SEARCH="$(GET s)"
ORDER="$(GET o |grep -m1 -axE 'Date|Name|Length|Group' || printf Name)"
LISTSIZE="$(COOKIE pagesize |grep -m1 -axE '[1-9][0-9]*' || printf 50)"
SEARCH="$(GET s)"
ORDER="$(GET o |grep -m1 -axE 'Date|Name|Length|Group' || printf Name)"
LISTSIZE="$(COOKIE pagesize |grep -m1 -axE '[1-9][0-9]*' || printf 50)"
SET_COOKIE +$((86400 * 90)) mode="$(POST mode |grep -m1 -axE 'browse|index' || printf browse)"
SET_COOKIE +$((86400 * 90)) fakemp4="$(POST fakemp4 |grep -m1 -axE 'yes' || printf no)"
SET_COOKIE +$((86400 * 90)) downscale="$(POST downscale |grep -m1 -axE 'yes' || printf no)"
SET_COOKIE +$((86400 * 90)) mode="$(POST mode |grep -m1 -axE 'browse|index' || printf browse)"
SET_COOKIE +$((86400 * 90)) fakemp4="$(POST fakemp4 |grep -m1 -axE 'yes' || printf no)"
SET_COOKIE +$((86400 * 90)) downscale="$(POST downscale |grep -m1 -axE 'yes' || printf no)"
- && { printf %s "$ITEM" |grep -qE -e "${file_pattern}" ;} \
- && gen_thumb "$_DATA/$ITEM" "$thumb"
+ && { printf %s "$PATH_INFO" |grep -qE -e "${file_pattern}" ;} \
+ && gen_thumb "$_DATA/$PATH_INFO" "$thumb"
. "$_EXEC/cgilite/file.sh"
fakemp4="$(COOKIE fakemp4)"
downscale="$(COOKIE downscale)"
. "$_EXEC/cgilite/file.sh"
fakemp4="$(COOKIE fakemp4)"
downscale="$(COOKIE downscale)"
if [ "$downscale" = yes -a -f "$downfile" ]; then
FILE "$downfile" "$([ "$fakemp4" = yes ] && printf 'video/mp4')"
else
if [ "$downscale" = yes -a -f "$downfile" ]; then
FILE "$downfile" "$([ "$fakemp4" = yes ] && printf 'video/mp4')"
else