DKL9 GitList
Repositories
DKL9 home
site_root
Code
Commits
Branches
Tags
Search
Tree:
993e20c
Branches
Tags
master
site_root
cgi-bin
feedback
Initial commit: track much site content
dkl9
commited
993e20c
at 2025-352 15:27:28
feedback
Blame
History
Raw
#!/bin/sh printf 'Content-Type: text/plain\n\n' IFS='&' read NOTE JUDGE if [ "${JUDGE#j=}" = "$JUDGE" ] || [ "${NOTE#t=}" = "$NOTE" ] then printf 'Bad request. Use the form given at the end of documents.\nIf that failed, email contact@dkl9.net' exit 0 fi JUDGE="${JUDGE#j=}" case "$JUDGE" in l) JUDGE='liked' ;; d) JUDGE='disliked' ;; n) JUDGE='withheld judgement on' ;; *) JUDGE='broke the form for' ;; esac NOTE="${NOTE#t=}" NOTE=`echo "$NOTE" | sed 's/+\|%[01][0-9A-Fa-f]/ /g; s/%/\\\\x/g'` NOTE=`printf "$NOTE"` printf '# %s: %s %s %s with comment "%s"\n' `date '+%Y-%j'` "$REMOTE_ADDR" "$JUDGE" "$HTTP_REFERER" "$NOTE" | tee -a 'fblog' printf 'Feedback received.\n'