diff --git a/cgi-bin/index.cgi b/cgi-bin/index.cgi new file mode 100644 index 0000000..964ecf9 --- /dev/null +++ b/cgi-bin/index.cgi @@ -0,0 +1,9 @@ +#!/bin/sh + +echo "HTTP/1.1 200 OK" +echo "Content-Type: text/html; charset=UTF-8" +echo "" + +GET="$QUERY_STRING" + +eval "$(echo "%>$(cat ../index.sh.html)<%" | sed -e "s/<%=/<%echo /g" -e "s/<%/\nRAW\n/g" -e "s/%>/\ncat <<- RAW\n/g")"