#!/bin/sh export DATE="17.10.2007";SCRIPT=${0#/rom} export TITLE="Admin: Contact info" . ${SCRIPT%/*}/cgi-bin-pre.sh cat<Admin: Contact info EOF if [ "$REQUEST_METHOD" = "POST" ]; then read QUERY_STRING fi if [ -z "$QUERY_STRING" ]; then cat<
Nickname:
Name:
Email:
Phone:
Location:
URL Net Hompeage
Notes:
 
   

Tip: The settings on this page are visible for visitors on the Contact page.

EOF else IFS=\&;set ${QUERY_STRING%%[^%&=+-:@-_a-z~]*};unset IFS;eval $* DIRTY= if [ -n "$post_adress" ]; then for V in ff_adm_nick ff_adm_name ff_adm_mail ff_adm_tel ff_adm_loc ff_adm_neturl ff_adm_note; do eval "C=\$$V" C=$(httpd -d "$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< The changed settings are committed. The settings are active now. EOF else cat< No settings are changed. EOF fi fi . ${SCRIPT%/*}/cgi-bin-post.sh