]> git.plutz.net Git - webpoll/commitdiff
let environment be determined by cgilite
authorPaul Hänsch <paul@plutz.net>
Sat, 28 Aug 2021 00:08:54 +0000 (02:08 +0200)
committerPaul Hänsch <paul@plutz.net>
Sat, 28 Aug 2021 00:08:54 +0000 (02:08 +0200)
index.cgi

index a7481d70383280808ba70ded82b9bd6d288f968a..a2059e290bf84e58a20e733167123b3fa932d09c 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -1,14 +1,9 @@
 #!/bin/sh
 
-_EXEC="${_EXEC:-${0%/*}/}"
-_DATA="${_DATA:-.}"
-_BASE="${_BASE%/}"
-
-. "$_EXEC"/cgilite/cgilite.sh
+. "${_EXEC:-${0%/*}}"/cgilite/cgilite.sh
 . "$_EXEC"/cgilite/session.sh
 . "$_EXEC"/cgilite/file.sh
 . "$_EXEC"/cgilite/storage.sh
-#. "$_EXEC"/session_lock.sh
 . "$_EXEC"/widgets.sh
 
 PATH_INFO="$(PATH "/${PATH_INFO#${_BASE}}")"