question status
question submitted. return
#!/bin/sh if [ "$REQUEST_METHOD" != "POST" ]; then echo "405 Method Not Allowed" echo "Content-Type: text/plain" echo echo "there isn't." exit fi question="$(lib/querystring question | dos2unix)" if [ -z "$question" ]; then echo "400 Bad Request" echo "Content-Type: text/plain" echo echo "bad request." exit fi echo "Content-Type: text/html" echo echo '
question submitted. return
/g' -e 's/$/<\/p>/g' echo echo } printf '%s' "$question" | format_question >> /opt/questions.txt