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