#!/bin/sh ##------------------------------------------------------------------------------ ## c3Surf - login for services __FLI4LVER__ ## ## Creation: 07.01.2008 Frank Saurbier - c3Surf@arcor.de ## Last Update: $Id$ ## ## Copyright (c) 2008-2010/04 Frank Saurbier - c3surf@arcor.de ## Copyright (c) 2010/05- Frank Saurbier, fli4l-Team - team@fli4l.de ## ## Licence and conditions look at ~/config/c3surf.txt ##------------------------------------------------------------------------------- . /srv/www/include/cgi-helper . /var/run/c3surf.conf # language # Thx to Wieland Große for helping if [ -f $C3SURF_READ_PATH/c3surf-lang.overwrite ] then . $C3SURF_READ_PATH/c3surf-lang.overwrite if [ -f /srv/www/lang/c3surf.$c3surf_admin_lang ] then . /srv/www/lang/c3surf.$c3surf_admin_lang fi fi # fix for fli4l v.3.3.0 and higher versions if [ -f /var/run/dhcp_leases_dir ] then . /var/run/dhcp_leases_dir fi # (fs) 20080317 dnsdhcp leases file c3surf_leases_file="$DHCP_LEASES_DIR/dnsmasq.leases" c3surf_tab_virgin=true ################################### simple_output () { htmlspecialchars | while read line do case $FORM_subaction in $log_file1) #login fsstamp=`echo $line | cut -d "|" -f 1` fsip=`echo $line | cut -d "|" -f 2` fsid=`echo $line | cut -d "|" -f 3` fsvorname=`echo $line | cut -d "|" -f 4` fsname=`echo $line | cut -d "|" -f 5` fsmail=`echo $line | cut -d "|" -f 6` fsmac=`echo $line | cut -d "|" -f 7` fsaction=`echo $line | cut -d "|" -f 8` echo "
$_gen_h_surname |
|||||||||
$c3surf_name |
+120 +240 | -120 -240 EOF else echo " | "
fi
echo " | \
\ $_onl_cmd_blockip 240 min \ $_onl_cmd_macblack " fi echo " |
$_gen_h_surname |
$_gen_h_curfew |
$_gen_h_minutes |
$_gen_h_minutes |
||||||
$_gen_h_seconds |
|||||||||
$fsname |
($fssecs) |
($fsblocksecs) |
$_gen_h_minutes |
|||||||
(Minuten) | \
||||
$_onl_cmd_macblack " fi echo " |