_EXEC="$(dirname "$real")" #execution directory
_DATA="$(dirname "$call")" #storage directory
-debug "Execution dir: $_EXEC"
-debug "Storage dir: $_DATA"
-
[ -w "$_DATA" ] && [ -d "$_DATA" ] || die "storage directory must be writable"
# create directories for object storage
. "$_EXEC/cgi.sh"
cgi_get
-debug "$_GET"
+
+. "$_EXEC/constants.sh"
[ -n "$_GET[\"action\"]" ] && . "$_EXEC/action.sh" || . "$_EXEC/page.sh"