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/info.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/info.cgi')
-rwxr-xr-x | www/info.cgi | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/www/info.cgi b/www/info.cgi new file mode 100755 index 0000000..b2e86cf --- /dev/null +++ b/www/info.cgi @@ -0,0 +1,44 @@ +#!/usr/bin/haserl +Content-Type: text/html;charset=UTF-8 +Pragma: no-cache +Cache-Control: no-cache + +<? eval `squark-auth-ip -i $REMOTE_ADDR -p` ?> +<!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>Internet User Authentication Required</title> + <link rel="stylesheet" type="text/css" href="/static/style.css" /> + </head> + <body> + <? squark-auth-ip -i $REMOTE_ADDR -r ?> + <div><img id="warning" src="/static/warning.png" alt="Warning sign" /></div> + <div id="outer_container"> + <div id="inner_container"> + <h1>Login Information</h1> + <p> + You are now logged in. You may wish to keep this page open in order to remain + logged in. Click the logout button below when you are finished. + </p> + <p> + Your Session Information: + </p> + <p> + <table> + <tr><td>IP-address:</td><td><? echo -n "$REMOTE_ADDR" ?></td></tr> + <tr><td>Username:</td><td><? echo -n "$squark_username" ?></td></tr> + <tr><td>Login time:</td><td><? echo -n "$squark_login_time" ?></td></tr> + <tr><td>Last Activity:</td><td><? echo -n "$squark_activity_time" ?></td></tr> + <tr><td>Last Override:</td><td><? echo -n "$squark_override_time" ?></td></tr> + </table> + </p> + <p> + <form action="do-logout.cgi" method="post"> + <input type="submit" value="Logout" /><td/> + </form> + </p> + </div> + </div> + </body> +</html> + |