]> git.plutz.net Git - confetti/blobdiff - index.cgi
basic update functions for vcards
[confetti] / index.cgi
index 277f7ae0517f4c7eeb01edc08c67fb4fbb236ba3..681c436b867e164fb48cd0017eb94464e6b2215a 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -30,7 +30,7 @@ debug "Storage dir: $_DATA"
 [ -w "$_DATA" ] && [ -d "$_DATA" ] || die "storage directory must be writable"
 
 # create directories for object storage
-for each in "$_DATA"/{vcard,mappings,courses,cache}; do
+for each in "$_DATA"/{vcard,mappings,courses,cache,temp}; do
   [ ! -e "$each" ] && mkdir "$each"
   [ -w "$each" ] && [ -d "$each" ] || die "storage $each must be a writable directory"
 done
@@ -48,4 +48,6 @@ EOF
 cgi_get
 debug "$_GET"
 
+. "$_EXEC/constants.sh"
+
 [ -n "$_GET[\"action\"]" ] && . "$_EXEC/action.sh" || . "$_EXEC/page.sh"