--- /dev/null
+#!/bin/sh
+
+f=''
+ref="$(POST ref)"
+order="$(POST order |grep -m1 -xE 'Name|Date|Length' || printf Name)"
+
+for n in 1 2 3 4 5 6 7 8 9; do
+ [ "$(POST pol_$n)" = neg ] \
+ && f="$f~"
+ cat="$(POST cat_$n)"
+ for m in $(seq 1 $(POST_COUNT tag_$n)); do
+ tag="$(POST tag_$n $m)"
+ [ ! "${tag##${cat}:*}" ] || [ "$cat" = '*' -a "${tag##*:*}" ] \
+ && f="${f}${tag}|"
+ done
+ f="${f%[|^]}^"
+done
+f="${f%^}"
+
+REDIRECT "${ref%%\?*}?o=${order}&f=${f}"
esac
elif [ -d "$_DATA/$ITEM" ]; then
case $(GET a) in
+ advsearch)
+ . "$_EXEC/advsearch.sh"
+ ;;
spawnindex)
if [ "$(POST recursive)" = yes ]; then
find "$_DATA/$ITEM" -depth -type d \! -name .index \