#!/bin/sh export DATE="17.10.2006";SCRIPT=${0#/rom} export TITLE="Verwaltung: DynDNS" . ${SCRIPT%/*}/cgi-bin-pre.sh cat<Verwaltung: DynDNS EOF if [ "$REQUEST_METHOD" = "POST" ]; then read QUERY_STRING fi if [ -z "$QUERY_STRING" ]; then dyndns_service="$(nvram get ff_dyndns_service)" dyndns_url="$(nvram get ff_dyndns_url)" dyndns_pass="$(nvram get ff_dyndns_pass)" dyndns_user="$(nvram get ff_dyndns_user)" if [ -z "$dyndns_service" ]; then div1=" " div2=" " div3=" " div4=" " div5=" " div6=" " else div1="Hostname:" div2="" div3="Username:" div4="" div5="Passwort:" div6="" fi if [ "dyndns.org" = "$dyndns_service" ]; then SEL_DYNDNS="selected" elif [ "freedns.afraid.org" = "$dyndns_service" ]; then SEL_FREEDNS="selected" else SEL_DISABLED="selected" fi cat<
DDNS-Service:

$div1
$div2
$div3
$div4
$div5
$div6
 
   
EOF else IFS=\&;set ${QUERY_STRING%%[^%&=+-:@-_a-z~]*};unset IFS;eval $* DIRTY= if [ -n "$post_dyndns" ]; then for V in ff_dyndns_url ff_dyndns_pass ff_dyndns_user ff_dyndns_service; do eval "C=\$$V" C=$(unescape $C) if [ "$C" != "$(nvram get $V)" ]; then DIRTY=1 nvram set $V="$C" fi done fi if [ -n "$DIRTY" ]; then nvram commit>/dev/null 2>&1 cat< Die geänderten Einstellungen wurden übernommen. Die Einstellungen sind erst beim nächsten Neustart aktiv. EOF else cat< Es wurden keine Einstellungen geändert. EOF fi fi . ${SCRIPT%/*}/cgi-bin-post.sh