--- /dev/null
+#!/bin/sh
+
+. "$_EXEC/cgilite/cgilite.sh"
+
+if [ "$1" -o "$ERROR_MSG" ]; then
+ printf '<p .error>%s</p>' "$(HTML "${1:-${ERROR_MSG}}")"
+fi
printf "Content-Length: 0\r\n\r\n"
fi
}
+
+theme_409(){
+ printf "%s\r\n" "Status: 409 Conflict"
+
+ if [ "$(mdfile '/[wiki]/409/')" ]; then
+ theme_page '/[wiki]/409/'
+ else
+ printf "Content-Length: 0\r\n\r\n"
+ fi
+}
+
+theme_500(){
+ printf "%s\r\n" "Status: 500 Internal Server Error"
+
+ if [ "$(mdfile '/[wiki]/500/')" ]; then
+ theme_page '/[wiki]/500/'
+ else
+ printf "Content-Length: 0\r\n\r\n"
+ fi
+}