#!/bin/sh
#file=geisa_form_changepasswd
#on entry: $1=lang
lang=$1
echol()
{ if [ "$lang" = fr ]; then echo "$1";else echo "$2";fi;}
echo Content-type: text/html
echo
echol "<html><head><title>Geisa-Passe </title></head><body>" "<html><head><title
>Geisa-Password </title></head><body>"
echol "<h2>S&eacute;curit&eacute; : Modifier le mot de passe</h2>" "<h2>Security : Changing your password</h2>"
conf=/usr/local/etc/httpd/adm/conf/access.conf
echo "<form action=/cgi-geisa/geisa_changepasswd_post method=post>"
echo "<input type=hidden name=lang value=$1>"
echol "Cette page vous permet de modifier le mot de passe associ&eacute; &agrave; votre identificateur pour la validation des connexions ult&eacute;rieures." "This is an HTML form used to change your password for HTTP user authentication on this system."
echo "<p><hr>"
echol "Vous devez r&eacute;ferencer l'identificateur que vous utilisez pour acc&eacute;der &agrave; ce service." "To use this form, you must know your user name on this system."
echo "<p>"
echol "Veuillez introduire ci-dessous votre identificateur." "First, enter your user name below."
echo "<p>"
echol "Identificateur" "User name"
echo ": <p><input type=text name=user><p>"
if [ `expr "\`echo "/#ADM/+"|ed -s $conf\` " : "require user.* $REMOTE_USER "` -gt 0 ];then n=WIZARD; else n=$REMOTE_USER; fi
echo "<input type=hidden name=owner value=$n>"
echol "Veuillez entrer ici votre nouveau mot de passe contenant au moins 6 caract&egrave;res." "Now, enter what you want to change your password to, with 6 characters at least."
echo "<p>"
echol "Nouveau mot de passe" "New password"
echo ": <p><input type=password name=newpasswd1><p>"
echol "Veuillez r&eacute;introduire ce mot" "Re-type new password"
echo ": <p><input type=password name=newpasswd2><p>"
echol "Veuillez valider en activant le bouton \"Valider\"." "When you click on the Change password button below, you will be asked to authenticate yourself."
echo "<p>"
echo "<input type=submit value="
echol "Valider" "\"Change password\""
echo "><p><input type=reset value="
echol "\"tout Effacer\"" "\"Reset these fields\""
echo "><p></form>"
