| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2004 Polytechnique.org *} |
| 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. |
| 29 | Pour en savoir plus, regarde la <a href="faq.php#connect">FAQ</a>. |
| 30 | </p> |
| 31 | </noscript> |
| 32 | |
| 33 | <h1> |
| 34 | Accès réservé aux Polytechniciens |
| 35 | </h1> |
| 36 | {min_auth level="cookie"} |
| 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 |
| 40 | <a href="{rel}/register/">la page d'inscription</a>. |
| 41 | </p> |
| 42 | {/min_auth} |
| 43 | |
| 44 | {only_public} |
| 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 |
| 51 | nous t'avons envoyé (expéditeur pre-inscription@polytechnique.org). |
| 52 | </li> |
| 53 | <li> |
| 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. Polytechnique.org 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="{rel}/register/">Clique ici pour nous demander tes |
| 58 | paramètres personnels.</a></strong> |
| 59 | </li> |
| 60 | </ul> |
| 61 | {/only_public} |
| 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> |
| 103 | <img src="{rel}/images/pi.png" alt=" [ ? ] " /> |
| 104 | <a href="{rel}/recovery.php">mot de passe perdu ?</a> |
| 105 | </td> |
| 106 | <td class="right"> |
| 107 | <input type="submit" name="submitbtn" value="Envoyer" /> |
| 108 | </td> |
| 109 | </tr></table> |
| 110 | </td> |
| 111 | </tr> |
| 112 | </table> |
| 113 | </form> |
| 114 | <p> |
| 115 | Problème de connexion ? <a href="{rel}/docs/faq.php#connect">La réponse est là.</a> |
| 116 | <br /> |
| 117 | (Activer obligatoirement le <strong>javascript</strong>) |
| 118 | </p> |
| 119 | |
| 120 | {if $smarty.request.response}<!-- failed login code //--> |
| 121 | <br /> |
| 122 | <div class="erreur"> |
| 123 | Erreur d'identification. Essaie à nouveau ! |
| 124 | </div> |
| 125 | {/if} |
| 126 | |
| 127 | <!-- Set up the form with the challenge value and an empty reply value //--> |
| 128 | <form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub"> |
| 129 | <div> |
| 130 | <input type="hidden" name="challenge" value="{$smarty.session.session->challenge}" /> |
| 131 | <input type="hidden" name="response" value="" /> |
| 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: *} |