From a0ed0e6bc7809e88ee1272fa9516dd7e3c7e8d2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Wed, 24 Nov 2010 16:13:57 +0200 Subject: www: add a set of example pages for block info and captive portal Relatively simple set of pages done in haserl. Fixes #448. --- www/do-login.cgi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 www/do-login.cgi (limited to 'www/do-login.cgi') diff --git a/www/do-login.cgi b/www/do-login.cgi new file mode 100755 index 0000000..e4afce8 --- /dev/null +++ b/www/do-login.cgi @@ -0,0 +1,19 @@ +#!/usr/bin/haserl +HTTP/1.0 302 Found +Location: & /dev/null && ok=yes + +if [ "$ok" = "yes" ]; then + squark-auth-ip -i $REMOTE_ADDR -u $POST_username -l + echo -n "info.cgi" +else + echo -n "login.cgi?REASON=fail" +fi ?> + +Moved. -- cgit v1.2.3