#!/bin/sh export DATE="9.5.2010";SCRIPT=${0#/rom} export TITLE="Agreement" . ${SCRIPT%/*}/cgi-bin-pre.sh cat<Agreement EOF . /www/cgi-bin/dhcpsplash/clients.sh . /www/cgi-bin/dhcpsplash/defaults.sh . /www/cgi-bin/dhcpsplash/vars.sh mac=$(splash_getmac "$REMOTE_ADDR") splash_isknownmac "$mac" && known="1" test "$(splash_getvar ff_dhcpsplash_ag)" = "off" && known="1" if [ -z "$known" ]; then cat<

Yes, I accept the agreement 

You are about to connect to the free and open freifunk.net wireless network. If you want to use this service you are obliged to read and accept the following terms of use.

EOF else cat<These are the terms of use for the free and open freifunk.net wireless network.

EOF fi splash_gettext agtext . ${SCRIPT%/*}/cgi-bin-post.sh