#!/bin/sh . "$_EXEC/cgilite/cgilite.sh" . "$_EXEC/acl.sh" . "$_EXEC/tools.sh" while [ $# -gt 0 ]; do case $1 in --system) glob_system_pages=true; shift 1;; --depth) depth="$2" shift 2;; *) if [ ! "$dir" ]; then dir="$1" elif [ ! "$depth" ]; then depth="$1" fi shift 1;; esac; done [ "$dir" ] || dir=* [ "$depth" -ge 0 -o "$depth" -le 0 ] 2>&- || depth=0 printf '\n'