From: Dobrica Pavlinusic Date: Tue, 29 Aug 2017 13:30:01 +0000 (+0200) Subject: added html page for Mozilla user agents X-Git-Url: http://git.rot13.org/?p=vaillant-thermostat;a=commitdiff_plain;h=b572a68f4c200668c61740409d33c7392496d9a0;hp=8706ce2f99dfd5dc9dacd869ce596e35e577777b added html page for Mozilla user agents --- diff --git a/temp2.sh b/temp2.sh index 3ffd76d..a8049f8 100755 --- a/temp2.sh +++ b/temp2.sh @@ -43,6 +43,22 @@ fi set > /dev/shm/temp2.cgi.vars +if echo $HTTP_USER_AGENT | grep Mozilla > /dev/null ; then + echo "Content-type: text/html\r\n\r\n" + cat << __HTML__ + +
+ + + + +
+ + +__HTML__ + exit 0 +fi + echo "Location: $REQUEST_SCHEME://$SERVER_NAME:$SERVER_PORT/temp2$GRAY.png" echo