diff --git a/gradint-build/server/samples.cgi b/gradint-build/server/samples.cgi index 70fb5ddcaa8306398eb0675f9c3b9c9345b63b60..8cbde3cce657b66078f733fbc56a42301ea08d74 100755 --- a/gradint-build/server/samples.cgi +++ b/gradint-build/server/samples.cgi @@ -1,6 +1,6 @@ #!/bin/bash -# Gradint online samples browser v1.0 (c) 2011 Silas S. Brown. License: GPL +# Gradint online samples browser v1.1 (c) 2011,2013 Silas S. Brown. License: GPL # Works as an "indexing" CGI. # To set up in Apache, make .htaccess with: @@ -28,6 +28,10 @@ if ! test "a$REQUEST_URI" == a; then cd "/home/ssb22/public_html/$(echo "$REQUEST_URI"|sed -e 's/?.*//')" fi # else assume the server put us in the right directory, like mathopd does +if echo "$SERVER_SOFTWARE"|grep Apache >/dev/null; then + echo "Status: 200 OK" # overriding the 403 +fi # (mathopd doesn't need this, and not tested with all mathopd versions) + export Filename="$(pwd|sed -e 's,.*/,,').zip" if test "$QUERY_STRING" == zip || test "a$(echo "$REQUEST_URI"|sed -e 's/.*?//')" == azip; then