3 . "${_EXEC:-${0%/*}}/cgilite/cgilite.sh"
4 . "${_EXEC}/cgilite/session.sh"
5 . "${_EXEC}/cgilite/users.sh"
9 WIKI_THEME="${WIKI_THEME:-default}"
10 . "${_EXEC}/themes/${WIKI_THEME}.sh"
13 # Print source text of a wiki page
14 # Get page from data or underlay dir
15 local page="$(PATH "$1")" mdfile
17 mdfile="$(mdfile "$page")" || return 4
18 acl_read "$page" || return 3
22 if [ "$(which git)" -a ! -f "$_DATA/.gitignore" ]; then
23 cat >"$_DATA/.gitignore" <<-EOF
33 git -C "$_DATA" add .gitignore
34 git -C "$_DATA" commit -m 'initialization' -- .gitignore
37 for handler in "$_EXEC"/handlers/*; do
42 export ERROR_MSG="The presented URL schema cannot be handled"