Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
179afa7f | 3 | {* Copyright (C) 2003-2008 Polytechnique.org *} |
0337d704 | 4 | {* http://opensource.polytechnique.org/ *} |
5 | {* *} | |
6 | {* This program is free software; you can redistribute it and/or modify *} | |
7 | {* it under the terms of the GNU General Public License as published by *} | |
8 | {* the Free Software Foundation; either version 2 of the License, or *} | |
9 | {* (at your option) any later version. *} | |
10 | {* *} | |
11 | {* This program is distributed in the hope that it will be useful, *} | |
12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} | |
13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} | |
14 | {* GNU General Public License for more details. *} | |
15 | {* *} | |
16 | {* You should have received a copy of the GNU General Public License *} | |
17 | {* along with this program; if not, write to the Free Software *} | |
18 | {* Foundation, Inc., *} | |
19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} | |
20 | {* *} | |
21 | {**************************************************************************} | |
22 | ||
23 | ||
24 | <h1> | |
25 | {if $actif}Modification du mot de passe SMTP/NNTP{else}Activation de ton compte SMTP/NNTP{/if} | |
26 | </h1> | |
27 | ||
28 | {literal} | |
29 | <script type="text/javascript"> | |
30 | <!-- | |
31 | function CheckResponse() { | |
32 | pw1 = document.forms.smtppass_form.smtppass1.value; | |
33 | pw2 = document.forms.smtppass_form.smtppass2.value; | |
34 | if (pw1 != pw2) { | |
e8439508 | 35 | alert ("\nErreur : les deux champs ne sont pas identiques !"); |
0337d704 | 36 | exit; |
37 | return false; | |
38 | } | |
39 | if (pw1.length < 6) { | |
e8439508 | 40 | alert ("\nErreur : le nouveau mot de passe doit faire au moins 6 caractères !"); |
0337d704 | 41 | exit; |
42 | return false; | |
43 | } | |
44 | document.forms.smtppass_form.op.value='Valider'; | |
45 | document.forms.smtppass_form.submit(); | |
46 | return true; | |
47 | } | |
48 | ||
49 | function SupprimerMdp() { | |
50 | document.forms.smtppass_form.op.value='Supprimer'; | |
51 | document.forms.smtppass_form.submit(); | |
52 | } | |
53 | // --> | |
54 | </script> | |
55 | {/literal} | |
56 | ||
57 | <p> | |
0337d704 | 58 | {if $actif} |
59 | Clique sur <strong>"Supprimer"</strong> si tu veux supprimer ton compte SMTP/NNTP. | |
60 | {else} | |
61 | Pour activer un compte SMTP/NNTP sur <strong>ssl.polytechnique.org</strong>, tape un mot de passe ci-dessous. | |
62 | {/if} | |
63 | </p> | |
c1895524 | 64 | <form action="password/smtp" method="post" id="smtppass_form" style="margin-top: 1em"> |
a7de4ef7 | 65 | <table class="tinybicol" cellpadding="3" summary="Définition du mot de passe"> |
0337d704 | 66 | <tr> |
0337d704 | 67 | <td class="titre"> |
e8439508 | 68 | Mot de passe (15 caractères maximum) : |
0337d704 | 69 | </td> |
70 | <td> | |
71 | <input type="password" size="15" maxlength="15" name="smtppass1" /> | |
72 | </td> | |
73 | </tr> | |
74 | <tr> | |
75 | <td class="titre"> | |
e8439508 | 76 | Retape-le une fois (pour vérification) : |
0337d704 | 77 | </td> |
78 | <td> | |
79 | <input type="password" size="15" maxlength="15" name="smtppass2" /> | |
80 | </td> | |
81 | </tr> | |
82 | <tr> | |
92029dcf FB |
83 | <td class="titre">Sécurité</td> |
84 | <td>{checkpasswd prompt="smtppass1" submit="valid"}</td> | |
85 | </tr> | |
86 | <tr> | |
0337d704 | 87 | <td colspan="2" class="center"> |
88 | <input type="hidden" name="op" value="" /> | |
92029dcf | 89 | <input type="submit" value="Valider" name="valid" onclick="CheckResponse(); return false;" /> |
0337d704 | 90 | {if $actif} |
91 | <input type="submit" value="Supprimer" onclick="SupprimerMdp();" /> | |
92 | {/if} | |
93 | </td> | |
94 | </tr> | |
95 | </table> | |
96 | </form> | |
97 | <p> | |
bf78688a | 98 | {icon name=error title="Attention"} Nous te déconseillons fortement d'utiliser le même |
c1895524 FB |
99 | mot de passe que pour la connexion au site. En effet ce mot de passe sert à accéder à des |
100 | services <em>moins</em> sécurisés qui nécessitent l'enregistrement de celui-ci en clair | |
101 | dans notre base de données. | |
bf78688a FB |
102 | </p> |
103 | <p> | |
a7de4ef7 | 104 | Ce mot de passe peut être le même que celui d'accès au site. Il doit faire au |
105 | moins <strong>6 caractères</strong> quelconques. Attention au type de clavier que tu | |
0337d704 | 106 | utilises (qwerty?) et aux majuscules/minuscules. |
107 | </p> | |
108 | ||
41e3c724 | 109 | {if $smarty.request.doc eq "nntp"} |
110 | <p> | |
111 | <a href="{$platal->pl_self()}?doc=smtp">Pourquoi et comment</a> utiliser le serveur SMTP de {#globals.core.sitename#}.<br /> | |
112 | </p> | |
483fb312 | 113 | {include wiki=Xorg.NNTPSecurise} |
41e3c724 | 114 | {elseif $smarty.request.doc eq "smtp"} |
115 | <p> | |
116 | <a href="{$platal->pl_self()}?doc=nntp">Pourquoi et comment</a> utiliser le serveur NNTP de {#globals.core.sitename#}.<br /> | |
117 | </p> | |
483fb312 | 118 | {include wiki=Xorg.SMTPSecurise} |
41e3c724 | 119 | {else} |
120 | <p> | |
bf78688a | 121 | <br /> |
ce8e9619 | 122 | <a href="{$platal->pl_self()}?doc=smtp">Pourquoi et comment</a> utiliser le serveur SMTP de {#globals.core.sitename#}.<br /> |
123 | <a href="{$platal->pl_self()}?doc=nntp">Pourquoi et comment</a> utiliser le serveur NNTP de {#globals.core.sitename#}. | |
41e3c724 | 124 | </p> |
125 | {/if} | |
126 | ||
a7de4ef7 | 127 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |