| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2006 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 | <h1> |
| 24 | Accès à Polytechnique.net |
| 25 | </h1> |
| 26 | |
| 27 | <noscript> |
| 28 | <p class="erreur"> |
| 29 | Ton navigateur n'accepte pas le javaScript !! |
| 30 | </p> |
| 31 | <p> |
| 32 | Cette forme de script web est nécessaire pour l'utilisation du site. |
| 33 | Pour en savoir plus, regarde la <a href="faq.php#connect">FAQ</a>. |
| 34 | </p> |
| 35 | </noscript> |
| 36 | |
| 37 | <table class='large' cellpadding="4" cellspacing="0"> |
| 38 | <tr> |
| 39 | <th style="width: 50%;"> |
| 40 | Accès pour les Polytechniciens |
| 41 | </th> |
| 42 | <th> |
| 43 | Accès pour les extérieurs |
| 44 | </th> |
| 45 | </tr> |
| 46 | <tr> |
| 47 | <td style="padding: 1em"> |
| 48 | <p class="descr"> |
| 49 | Il suffit de suivre <strong><a href="{$smarty.session.session->loginX}">ce lien</a></strong> qui va te rediriger vers |
| 50 | <a href="https://www.polytechnique.org/">Polytechnique.org</a> brièvement. |
| 51 | </p> |
| 52 | <p class="descr"> |
| 53 | Une fois autentifié sur Polytechnique.org, tu seras redirigé sur X.net |
| 54 | </p> |
| 55 | <div class="center"> |
| 56 | <strong> |
| 57 | <a href="{$smarty.session.session->loginX}">ME CONNECTER</a> |
| 58 | </strong> |
| 59 | </div> |
| 60 | </td> |
| 61 | <td style="padding: 1em"> |
| 62 | <!--<form action="{$smarty.server.REQUEST_URI}" method="post" id="login" onsubmit="doChallengeResponse(); return false;"> |
| 63 | <table class="large" cellpadding="4" cellspacing="0" summary="Formulaire de login"> |
| 64 | <tr> |
| 65 | <th colspan="2">Connexion |
| 66 | <input type="hidden" name="remember" value="" /> |
| 67 | <input type="hidden" name="domain" value="" /> |
| 68 | </th> |
| 69 | </tr> |
| 70 | <tr> |
| 71 | <td class="titre"> |
| 72 | Login |
| 73 | </td> |
| 74 | <td> |
| 75 | <input type="text" name="username" size="20" maxlength="50" value="" /> |
| 76 | </td> |
| 77 | </tr> |
| 78 | <tr> |
| 79 | <td class="titre"> |
| 80 | Mot de passe: |
| 81 | </td> |
| 82 | <td> |
| 83 | <input type="password" name="password" size="10" maxlength="10" /> |
| 84 | </td> |
| 85 | </tr> |
| 86 | <tr> |
| 87 | <td colspan="2" class="center"> |
| 88 | <input type="submit" name="submitbtn" value="Envoyer" /> |
| 89 | </td> |
| 90 | </tr> |
| 91 | </table> |
| 92 | </form> |
| 93 | |
| 94 | (Activer obligatoirement le <strong>javascript</strong>) --> |
| 95 | <p>(Non disponible)</p> |
| 96 | {if $smarty.request.response}<!-- failed login code //--> |
| 97 | <div class="erreur"> |
| 98 | Erreur d'identification. Essaie à nouveau ! |
| 99 | </div> |
| 100 | {/if} |
| 101 | </td> |
| 102 | </tr> |
| 103 | </table> |
| 104 | |
| 105 | <!-- Set up the form with the challenge value and an empty reply value //--> |
| 106 | <form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub"> |
| 107 | <div> |
| 108 | <input type="hidden" name="challenge" value="{$smarty.session.session->challenge}" /> |
| 109 | <input type="hidden" name="response" value="" /> |
| 110 | <input type="hidden" name="username" value="" /> |
| 111 | <input type="hidden" name="remember" value="" /> |
| 112 | <input type="hidden" name="domain" value="" /> |
| 113 | </div> |
| 114 | </form> |
| 115 | |
| 116 | {literal} |
| 117 | <script type="text/javascript"> |
| 118 | <!-- |
| 119 | // Activate the appropriate input form field. |
| 120 | if (document.forms.login.username.value == '') { |
| 121 | document.forms.login.username.focus(); |
| 122 | } else { |
| 123 | document.forms.login.password.focus(); |
| 124 | } |
| 125 | // --> |
| 126 | </script> |
| 127 | {/literal} |
| 128 | |
| 129 | {* vim:set et sw=2 sts=2 sws=2: *} |