#!/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 if [ -n $FORM_language ] then if [ -f /srv/www/lang/c3surf.$FORM_language ] then . /srv/www/lang/c3surf.$FORM_language fi fi my_n=0 my_s=0 simple_output () { htmlspecialchars | while read line do fsuid=`echo $line | cut -d "," -f 1` fspwd=`echo $line | cut -d "," -f 2` fstime=`echo $line | cut -d "," -f 3` fsvalid=`echo $line | cut -d "," -f 4` fslives=`echo $line | cut -d "," -f 5` my_foot="$_prt_h_foot_1" if [ -n "$fslives" ] then if [ $fslives -lt 0 ]; then my_foot="$_prt_h_foot_3"; fi if [ $fslives -gt 0 ]; then my_foot="$_prt_h_foot_2a $fslives $_prt_h_foot_2b"; fi fi if [ $my_n -ne 0 ] then echo "

" if [ $my_s -ge 5 ] then echo "
" my_s=0 fi fi my_s=`/usr/bin/expr $my_s "+" 1` my_n=`/usr/bin/expr $my_n "+" 1` [ $my_n -ge 5 ] && $my_n=0 cat <<-EOF
EOF cat <<-EOF EOF cat <<-EOF EOF cat <<-EOF

$_prt_h_head
 
$_prt_h_uid
$_prt_h_pwd
$_prt_h_time
$_prt_h_valid
$fsuid
$fspwd
$fstime
$fsvalid
$my_foot
EOF done } echo "Content-Type: text/html; charset=utf-8" echo "Cache-Control: max-age=1, s-maxage=1, no-cache, must-revalidate, no-store" echo "Pragma: no-cache" echo "Expires: `date -Ru`" echo cat <<-EOF Print Voucher EOF [ -f $C3SURF_VOUCHER_PRINTFILE ] && /bin/cat $C3SURF_VOUCHER_PRINTFILE | simple_output cat <<-EOF