# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
# IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-. "${_EXEC:-${0%/*}}/cgilite/cgilite.sh"
-. "${_EXEC}/cgilite/session.sh"
-. "${_EXEC}/cgilite/users.sh"
-. "${_EXEC}/tools.sh"
-. "${_EXEC}/acl.sh"
-
export REV_PAGES=${REV_PAGES:-true}
export REV_ATTACHMENTS=${REV_ATTACHMENTS:-false}
export WIKI_THEME="${WIKI_THEME:-default}"
export SEARCH_INDEX="${SEARCH_INDEX:-true}"
+export USER_AUTH="${USER_AUTH:-default}"
+
+. "${_EXEC:-${0%/*}}/cgilite/cgilite.sh"
+. "${_EXEC}/cgilite/session.sh"
+. "${_EXEC}/auth/${USER_AUTH}.sh"
+. "${_EXEC}/tools.sh"
+. "${_EXEC}/acl.sh"
+. "${_EXEC}/themes/${WIKI_THEME}.sh"
which git >/dev/null || REV_PAGES=false
[ "$REV_PAGES" != true ] && REV_ATTACHMENTS=false
-. "${_EXEC}/themes/${WIKI_THEME}.sh"
-
# Renew session cookie, only if cookie already set
[ "$(COOKIE session)" ] && SESSION_COOKIE