Changeset 426
- Timestamp:
- 01/17/08 18:40:07 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
firmware/trunk/freifunk/build_ffw/www/cgi-bin/system/password.html
r267 r426 1 1 #!/bin/sh 2 2 3 export DATE=" xx.xx.xxxx";SCRIPT=${0#/rom}3 export DATE="17.01.2008";SCRIPT=${0#/rom} 4 4 export TITLE="Mot de Passe" 5 5 . ${SCRIPT%/*}/cgi-bin-pre.sh … … 15 15 16 16 cat<<EOF 17 <FORM ACTION="password.html" METHOD="POST"><TABLE CLASS="shadow0" CELLPADDING="0" CELLSPACING="0"><TR><TD><TABLE CLASS="shadow1" CELLPADDING="0" CELLSPACING="0"><TR><TD><TABLE CLASS="shadow2" CELLPADDING="0" CELLSPACING="0"><TR><TD><TABLE BORDER="0" CLASS="form"> 17 <FORM ACTION="password.html" METHOD="POST"> 18 <TABLE CLASS="shadow0" CELLPADDING="0" CELLSPACING="0"><TR><TD><TABLE CLASS="shadow1" CELLPADDING="0" CELLSPACING="0"><TR><TD><TABLE CLASS="shadow2" CELLPADDING="0" CELLSPACING="0"><TR><TD><TABLE BORDER="0" CLASS="form"> 18 19 <TR 19 20 TITLE="Entrer le nouveau mot de passe d'au plus huit lettres, nombres ou caractères spéciaux."> 20 <TD>Nouveau Mot de Passe :</TD><TD><INPUT NAME="ff_pw" SIZE="32" TYPE="PASSWORD"></TD> 21 </TR><TR 21 <TD>Nouveau Mot de Passe :</TD> 22 <TD><INPUT NAME="ff_pw" SIZE="32" TYPE="PASSWORD"></TD> 23 </TR> 24 <TR 22 25 TITLE="Réentrer le mot de passe ici."> 23 26 <TD>Retaper le Mot de Passe :</TD> 24 27 <TD><INPUT NAME="confirm_pw" SIZE="32" TYPE="PASSWORD"></TD> 25 </TR><TR><TD COLSPAN="2"> </TD> 26 </TR><TR><TD COLSPAN="2"><INPUT NAME="post_password" TITLE="Appliquer ces changements. Les paramètres seront utilisés au prochain redémarrage." TYPE="SUBMIT" VALUE="Appliquer"> <INPUT NAME="post_abort" TITLE="Annuler l'édition de la page." TYPE="SUBMIT" VALUE="Annuler"></TD> 28 </TR> 29 <TR> 30 <TD COLSPAN="2"> </TD> 31 </TR> 32 <TR> 33 <TD COLSPAN="2"><INPUT NAME="post_password" TITLE="Appliquer ces changements. Les paramètres seront utilisés au prochain redémarrage." TYPE="SUBMIT" VALUE="Appliquer"> <INPUT NAME="post_abort" TITLE="Annuler l'édition de la page." TYPE="SUBMIT" VALUE="Annuler"></TD> 27 34 </TR> 28 35 </TABLE></TD></TR></TABLE></TD></TR></TABLE></TD></TR></TABLE></FORM> … … 45 52 if [ -n "$post_password" ]; then 46 53 if [ "$ff_pw" = "$confirm_pw" ]; then 47 ff_pw=$( unescape $ff_pw)54 ff_pw=$(httpd -d "$ff_pw") 48 55 sh -c "echo '$ff_pw';sleep 1;echo '$ff_pw'"|passwd>/dev/null 2>&1 49 56 ff_pw=$(httpd -m $ff_pw) … … 55 62 56 63 cat<<EOF 57 <TABLE BORDER="0" CLASS="note"><TR><TD>Les 2 mots de passe ne sont pas les mêmes ! 64 <TABLE BORDER="0" CLASS="note"> 65 <TR> 66 <TD>Les 2 mots de passe ne sont pas les mêmes ! 58 67 Le mot de passe n'a pas été changé.</TD> 59 68 </TR> … … 67 76 68 77 cat<<EOF 69 <TABLE BORDER="0" CLASS="note"><TR><TD>Les paramètres 78 <TABLE BORDER="0" CLASS="note"> 79 <TR> 80 <TD>Les paramètres 70 81 sont enregistrés. Ils seront utilisés au prochain 71 82 <A HREF="/cgi-bin/reset.html">Redémarrage</A>.</TD> … … 77 88 78 89 cat<<EOF 79 <TABLE BORDER="0" CLASS="note"><TR><TD>Aucun 80 changement effectué.</TD> 90 <TABLE BORDER="0" CLASS="note"> 91 <TR> 92 <TD>Aucun changement effectué.</TD> 81 93 </TR> 82 94 </TABLE>
