--- /dev/null
+#!/bin/sh
+
+[ "$HTML_EXPORT" ] || return 1
+
+. "$_EXEC/cgilite/file.sh"
+
+case "${PATH_INFO}" in
+ /"[.]"/*)
+ :;;
+ *${BR}*)
+ :;;
+ */\#*)
+ :;;
+ */\[*\]/*|*/\[*\])
+ :;;
+ */)
+ if mdfile "$PATH_INFO" >&- \
+ && acl_read "$PATH_INFO"; then
+ mkdir -p "${HTML_EXPORT}${PATH_INFO}"
+ ( unset USER_NAME
+ acl_read "$PATH_INFO" \
+ && theme_page "${PATH_INFO}" \
+ | tee "${HTML_EXPORT}${PATH_INFO}/index.html"
+ ) && return 0
+ fi
+ ;;
+esac
+
+return 1