#!/bin/sh #--------------------------------------------------------------------- # /rv/ww/admin/yapsGUI_edit.cgi __FLI4LVER__ # # Last Update: $Id$ # # report errors to: Christoph Schulz #--------------------------------------------------------------------- SEC_REALM='sms' SEC_ACTION='edittb' . ./sec-lib.cgi . /var/run/yapsgui.conf echo "Content-Type: text/html; charset=utf-8" echo "Pragma: no-cache" echo "Expires: 0" echo "" idx=1 while [ "$idx" -lt "$YAPSGUI_USER_N" ] do eval username='$YAPSGUI_USER_'$idx'_USERNAME' if [ "$username" = "$REMOTE_USER" ] then eval YAPSGUI_RECIPIENT_TB='$YAPSGUI_USER_'$idx'_RECIPIENT_TB' # eval YAPSGUI_RECIPIENT_STD='$YAPSGUI_USER_'$idx'_RECIPIENT_STD' eval YAPSGUI_SENDER_TB='$YAPSGUI_USER_'$idx'_SENDER_TB' # eval YAPSGUI_SENDER_STD='$YAPSGUI_USER_'$idx'_SENDER_STD' YAPSGUI_USER="$username" fi idx=`/usr/bin/expr $idx + 1` done if [ -z "$YAPSGUI_USER" ] then YAPSGUI_RECIPIENT_TB=$YAPSGUI_RECIPIENT_TB_COMMON # YAPSGUI_RECIPIENT_STD=$YAPSGUI_RECIPIENT_STD_COMMON YAPSGUI_SENDER_TB=$YAPSGUI_SENDER_TB_COMMON # YAPSGUI_SENDER_STD=$YAPSGUI_SENDER_STD_COMMON fi if [ ! -f "$YAPSGUI_RECIPIENT_TB" ] then if [ ! -d `dirname "$YAPSGUI_RECIPIENT_TB"` ] then mkdir -p `dirname "$YAPSGUI_RECIPIENT_TB"` fi echo > "$YAPSGUI_RECIPIENT_TB" fi if [ ! -f "$YAPSGUI_SENDER_TB" ] then if [ ! -d `dirname "$YAPSGUI_SENDER_TB"` ] then mkdir -p `dirname "$YAPSGUI_SENDER_TB"` fi echo > "$YAPSGUI_SENDER_TB" fi dtou -s "$YAPSGUI_SENDER_TB" dtou -s "$YAPSGUI_RECIPIENT_TB" # variablen einlesen eval "`proccgi $*`" if [ "$FORM_action" = "edit" ] then if [ "$FORM_tb" = "sender" ] then phonebook="$YAPSGUI_SENDER_TB" else phonebook="$YAPSGUI_RECIPIENT_TB" fi # print header echo " yaps-GUI 2

_____Telefonbuch bearbeiten_____

Beispiel:
0162123123=Meine Tante
0171666666=Graf Wolfgang Meier-Zeppelin

" elif [ "$FORM_action" = "commit" ] then if [ "$FORM_tb" = "sender" ] then phonebook="$YAPSGUI_SENDER_TB" else phonebook="$YAPSGUI_RECIPIENT_TB" fi echo "$FORM_file" > $phonebook dtou -s $phonebook echo "" echo "

Änderungen übernommen

" echo "
" echo "zurück" echo "
" echo "" else echo "" echo "

FATAL ERROR

" echo "
" echo "Unknown Command Line" echo "
" echo "" fi