diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-11-24 16:13:57 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-11-24 16:13:57 +0200 |
commit | a0ed0e6bc7809e88ee1272fa9516dd7e3c7e8d2d (patch) | |
tree | b7503d54f52793a9d9c8c931f5fab2089c9db016 /www/warning.cgi | |
parent | 301047f944320fccef17df3431ddd0bd5d1455a0 (diff) | |
download | squark-a0ed0e6bc7809e88ee1272fa9516dd7e3c7e8d2d.tar.bz2 squark-a0ed0e6bc7809e88ee1272fa9516dd7e3c7e8d2d.tar.xz |
www: add a set of example pages for block info and captive portalv0.1
Relatively simple set of pages done in haserl. Fixes #448.
Diffstat (limited to 'www/warning.cgi')
-rwxr-xr-x | www/warning.cgi | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/www/warning.cgi b/www/warning.cgi new file mode 100755 index 0000000..5c73fa7 --- /dev/null +++ b/www/warning.cgi @@ -0,0 +1,37 @@ +#!/usr/bin/haserl +Content-Type: text/html;charset=UTF-8 +Pragma: no-cache +Cache-Control: no-cache + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> + <head> + <title>Content Filter Warning</title> + <link rel="stylesheet" type="text/css" href="/static/style.css" /> + </head> + <body> + <div><img id="warning" src="/static/warning.png" alt="Warning sign" /></div> + <div id="outer_container"> + <div id="inner_container"> + <h1>Content Filter Warning</h1> + <p>Access to + <span class="deniedurl"><? echo -n ${GET_DENIEDURL} | cut -d "/" -f1-3 ?></span> + has been denied in an attempt to protect you from harmful content. + </p> + <p>However, if you are sure that you were blocked in error, you may + override the warnings for a 15 minute period. + </p> + <p>Reason for block: <? echo -n $GET_REASON ?></p> + <p>User credentials: <? echo -n $GET_USER ?></p> + <p>User IP-address: <? echo -n $REMOTE_ADDR ?></p> + <p> + <form action="do-override.cgi"> + <input type="hidden" name="DENIEDURL" value="<? echo -n ${GET_DENIEDURL} ?>" /> + <input type="submit" value="Override block" method="get" /> + </form> + </p> + </div> + </div> + </body> +</html> + |