0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
50a40a33 |
3 | {* Copyright (C) 2003-2006 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 | <noscript> |
24 | <p class="erreur"> |
25 | Ton navigateur n'accepte pas le javaScript !! |
26 | </p> |
27 | <p> |
28 | Cette forme de script web est nécessaire pour l'utilisation du site. |
7b2413f6 |
29 | Pour en savoir plus, regarde la <a href="Docs/FAQ#connect">FAQ</a>. |
0337d704 |
30 | </p> |
31 | </noscript> |
32 | |
33 | <h1> |
34 | Accès réservé aux Polytechniciens |
35 | </h1> |
c6db254a |
36 | {if $smarty.session.auth ge AUTH_COOKIE} |
0337d704 |
37 | <p> |
38 | <strong>Merci de rentrer ton mot de passe pour démarrer une connexion au site.</strong> |
39 | Si tu n'es pas {insert name="getName"}, change le login ci-dessous, ou rends-toi sur |
7b2413f6 |
40 | <a href="register/">la page d'inscription</a>. |
0337d704 |
41 | </p> |
c6db254a |
42 | {/if} |
0337d704 |
43 | |
c6db254a |
44 | {if !$smarty.session.auth} |
0337d704 |
45 | <p> |
46 | <strong>Tu ne connais pas ton mot de passe ?</strong> |
47 | </p> |
48 | <ul> |
49 | <li> |
50 | Si tu viens de terminer ta pré-inscription, <strong>il est dans le mail</strong> que |
7d73bb7b |
51 | nous t'avons envoyé (expéditeur pre-inscription@{#globals.mail.domain#}). |
0337d704 |
52 | </li> |
53 | <li> |
54 | Si tu n'es jamais venu sur le site, <strong>il faut t'enregistrer auprès de |
7d73bb7b |
55 | nous</strong> pour obtenir un accès. {#globals.core.sitename#} c'est l'e-mail des X, |
0337d704 |
56 | l'annuaire en ligne, plus un tas d'autres services. Nous te fournirons un accès le plus |
7b2413f6 |
57 | rapidement possible. <strong> <a href="register/">Clique ici pour nous demander tes |
0337d704 |
58 | paramètres personnels.</a></strong> |
59 | </li> |
60 | </ul> |
c6db254a |
61 | {/if} |
0337d704 |
62 | |
63 | <br /> |
64 | |
65 | <form action="{$smarty.server.REQUEST_URI}" method="post" id="login" onsubmit="doChallengeResponse(); return false;"> |
66 | <table class="bicol" cellpadding="4" summary="Formulaire de login"> |
67 | <tr> |
68 | <th colspan="2">Connexion</th> |
69 | </tr> |
70 | <tr style="white-space: nowrap"> |
71 | <td class="titre"> |
72 | Adresse email : |
73 | </td> |
74 | <td> |
75 | <input type="text" name="username" size="20" maxlength="50" value="{insert name="getUserName"}" /> @ <select name="domain"> |
76 | <option value="login">{#globals.mail.domain#} / {#globals.mail.domain2#}</option> |
77 | <option value="alias" {if $smarty.cookies.ORGdomain eq alias}selected="selected"{/if}> |
78 | {#globals.mail.alias_dom#} / {#globals.mail.alias_dom2#} |
79 | </option> |
80 | {$smarty.cookies.domain} |
81 | </select> |
82 | </td> |
83 | </tr> |
84 | <tr> |
85 | <td class="titre"> |
86 | Mot de passe: |
87 | </td> |
88 | <td> |
89 | <input type="password" name="password" size="10" maxlength="10" /> |
90 | </td> |
91 | </tr> |
92 | <tr> |
93 | <td></td> |
94 | <td {popup caption='Connexion permanente' width='300' text="Coche cette case pour que le site se souvienne de ce navigateur.<br /> |
95 | Il n'est pas conseillé de cocher la case si cette machine n'est pas <b>strictement</b> personnelle"}> |
96 | <input type="checkbox" name="remember" /> Garder l'accès aux services après déconnexion |
97 | </td> |
98 | </tr> |
99 | <tr> |
100 | <td colspan="2"> |
101 | <table width="100%"><tr> |
102 | <td> |
7b2413f6 |
103 | <a href="recovery">mot de passe perdu ?</a> |
0337d704 |
104 | </td> |
105 | <td class="right"> |
106 | <input type="submit" name="submitbtn" value="Envoyer" /> |
107 | </td> |
108 | </tr></table> |
109 | </td> |
110 | </tr> |
111 | </table> |
112 | </form> |
113 | <p> |
7b2413f6 |
114 | Problème de connexion ? <a href="Docs/FAQ#connect">La réponse est là.</a> |
0337d704 |
115 | <br /> |
116 | (Activer obligatoirement le <strong>javascript</strong>) |
117 | </p> |
118 | |
119 | {if $smarty.request.response}<!-- failed login code //--> |
120 | <br /> |
121 | <div class="erreur"> |
122 | Erreur d'identification. Essaie à nouveau ! |
123 | </div> |
124 | {/if} |
125 | |
126 | <!-- Set up the form with the challenge value and an empty reply value //--> |
127 | <form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub"> |
128 | <div> |
cab08090 |
129 | <input type="hidden" name="challenge" value="{$smarty.session.challenge}" /> |
0337d704 |
130 | <input type="hidden" name="response" value="" /> |
46bde4d1 |
131 | <input type="hidden" name="xorpass" value="" /> |
0337d704 |
132 | <input type="hidden" name="username" value="" /> |
133 | <input type="hidden" name="remember" value="" /> |
134 | <input type="hidden" name="domain" value="" /> |
135 | </div> |
136 | </form> |
137 | |
138 | {literal} |
139 | <script type="text/javascript"> |
140 | <!-- |
141 | // Activate the appropriate input form field. |
142 | if (document.forms.login.username.value == '') { |
143 | document.forms.login.username.focus(); |
144 | } else { |
145 | document.forms.login.password.focus(); |
146 | } |
147 | // --> |
148 | </script> |
149 | {/literal} |
150 | |
151 | {* vim:set et sw=2 sts=2 sws=2: *} |