#!/bin/sh export DATE="14.9.2008";SCRIPT=${0#/rom} export TITLE="Administration : Contact" . ${SCRIPT%/*}/cgi-bin-pre.sh cat<Administration : Contact EOF if [ "$REQUEST_METHOD" = "POST" ]; then read QUERY_STRING fi if [ -z "$QUERY_STRING" ]; then cat<
Surnom :
Nom :
Email :
Téléphone :
Localisation :
URL Net Hompeage
Notes :
 
   

Astuce : Les informations de cette page seront affichées aux visiteurs du point d'accès sur la page de contact.

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< Les paramètres sont enregistrés. Ils sont activés. EOF else cat< Aucun changement effectué. EOF fi fi . ${SCRIPT%/*}/cgi-bin-post.sh