#author("2026-06-12T03:33:42+00:00","default:iseki","iseki") #author("2026-06-19T01:02:08+00:00","default:iseki","iseki") ** Chat Site <pre> #!/bin/bash if [ "$REQUEST_METHOD" = POST ]; then string=$(head --bytes="$CONTENT_LENGTH") sstring=`echo $string | ./urldecode | sed s/hatsugen=//g` fi if [ "$REQUEST_METHOD" = GET ]; then string=$QUERY_STRING sstring=`echo $string | ./urldecode | sed s/hatsugen=//g` fi echo "Content-Type: text/html" echo "Refresh:30;" echo echo "<!doctype html>" echo "<html>" echo "<head><meta charset=\"UTF-8\" /><title>URL Decode</title></head>" echo "<body>" if [ "$REQUEST_METHOD" = POST ] && [ "$sstring" != "" ]; then { flock 9 echo $sstring"<br />" >> ABC echo 'Your IP address is: '$REMOTE_ADDR", "$(date)" <br />" >> ABC echo "<hr />" >> ABC } 9>.abc.lock fi echo "<form method=post action=post_get.cgi>" cat << _END <p>テキスト<br /> <input type="text" name="hatsugen" value=""><br /> <br /><br /> </p> <input type ="submit" value="送信!"> <input type ="reset" value="リセット"><BR> <input type ="reset" value="リセット"><br /> _END echo "</form>" echo "<hr />" tac ABC echo "</body>" echo "</html>" </pre>