#!/bin/sh
. "${_EXEC:-${0%/*}}/cgilite/cgilite.sh"
-set -- nocookie
. "${_EXEC}/cgilite/session.sh"
. "${_EXEC}/cgilite/file.sh"
. "${_EXEC}/cgilite/users.sh"
fi
}
-. "$_EXEC/page_edit.sh"
-
case "${PATH_INFO}" in
/"[.]"/*)
FILE "${_EXEC}/${PATH_INFO#/\[.\]}"
if [ -f "$_DATA/pages/$PATH_INFO/#page.md" \
-o -f "$_EXEC/pages/$PATH_INFO/#page.md" ]; then
theme_page "${PATH_INFO}"
- else
- theme_404
fi
;;
*/"[login]")
*/"[register]")
theme_register
;;
- */"[attachment]"/*)
- : # TODO: Original attachment file
- ;;
*/"#"*)
: # TODO: Invalid page name
;;
- *)
- attachment "${PATH_INFO}"
- ;;
esac
+
+. "$_EXEC/page_edit.sh"
+. "$_EXEC/attachment.sh"