svn path=/trunk/; revision=21
val="$(echo "$query" |sed -r 's:^([a-zA-Z0-9_-]*)=(.*)$:\2:')"
_GET["$key"]="$(echo -e "$(echo "$val" |sed 's:+: :g;s:%:\\x:g')")"
done
- debug "$_GET"
}
cgi_post() { # parse HTTP POST string
else
_POST["$key"]="$value"
fi
- debug "post($key$n) => $value"
done
- debug "$_POST"
}
_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"
</form>
</div>
x_EOF
- debug "Edit: $card"
else cat <<x_EOF
<div id="${id}" class="card">
<p class="control"><a href="?page=attendees&edit=${id}#${id}">$(l10n edit)</a></p>