#!/bin/sh export DATE="6.6.2005";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:
Notes:
 
   

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

EOF else eval $(echo "$QUERY_STRING"|awk -F'&' '{for(i=1;i<=NF;i++){print $i}}') 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_note; 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< 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