Feedback form for phrasebook/minibar

This commit is contained in:
hallgren
2010-06-02 14:36:09 +00:00
parent e5bc4328cb
commit 1e5984fe2d
2 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#!/bin/bash
bin=../bin
. $bin/cgistart.sh
getquery
if [ -n "$feedback_path" ] &&
echo "t=$(date +%F+%T)&ip=$REMOTE_ADDR&$query&accept_language=$HTTP_ACCEPT_LANGUAGE" >> "$feedback_path"
then
pagestart "Thank you"
echo "Your feedback has been saved."
begin script type="text/javascript"
echo "setTimeout(function(){window.close()},4000);"
end
pageend
else
pagestart "Feedback error"
echo "Your feedback could not be saved. Sorry."
p
tag 'input type=button onclick="javascript:history.back()" value="<- Go back"'
pageend
fi