1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
25 Ton navigateur n'accepte pas le javaScript !!
28 Cette forme de script web est nécessaire pour l'utilisation du site.
29 Pour en savoir plus, regarde la <a href="Docs/FAQ#connect">FAQ</a>.
34 Accès réservé aux Polytechniciens
36 {if $smarty.session.auth ge AUTH_COOKIE}
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
40 <a href="register/">la page d'inscription</a>.
44 {if !$smarty.session.auth}
46 <strong>Tu ne connais pas ton mot de passe ?</strong>
50 Si tu viens de terminer ta pré-inscription, <strong>il est dans le mail</strong> que
51 nous t'avons envoyé (expéditeur pre-inscription@{#globals.mail.domain#}).
54 Si tu n'es jamais venu sur le site, <strong>il faut t'enregistrer auprès de
55 nous</strong> pour obtenir un accès. {#globals.core.sitename#} c'est l'e-mail des X,
56 l'annuaire en ligne, plus un tas d'autres services. Nous te fournirons un accès le plus
57 rapidement possible. <strong> <a href="register/">Clique ici pour nous demander tes
58 paramètres personnels.</a></strong>
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">
68 <th colspan="2">Connexion</th>
70 <tr style="white-space: nowrap">
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#}
80 {$smarty.cookies.domain}
89 <input type="password" name="password" size="10" maxlength="10" />
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
101 <table width="100%"><tr>
103 <a href="recovery">mot de passe perdu ?</a>
106 <input type="submit" name="submitbtn" value="Envoyer" />
114 Problème de connexion ? <a href="Docs/FAQ#connect">La réponse est là.</a>
116 (Activer obligatoirement le <strong>javascript</strong>)
119 {if $smarty.request.response}<!-- failed login code //-->
122 Erreur d'identification. Essaie à nouveau !
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">
129 <input type="hidden" name="challenge" value="{$smarty.session.challenge}" />
130 <input type="hidden" name="response" value="" />
131 <input type="hidden" name="xorpass" value="" />
132 <input type="hidden" name="username" value="" />
133 <input type="hidden" name="remember" value="" />
134 <input type="hidden" name="domain" value="" />
139 <script type="text/javascript">
141 // Activate the appropriate input form field.
142 if (document.forms.login.username.value == '') {
143 document.forms.login.username.focus();
145 document.forms.login.password.focus();
151 {* vim:set et sw=2 sts=2 sws=2: *}