text-align: center;
vertical-align: middle;
}
+
+table.tinybicol th a:link, table.tinybicol th a:visited,
+table.tinybicol th a:active, table.tinybicol th a:hover,
+table.bicol th a:link, table.bicol th a:visited,
+table.bicol th a:active, table.bicol th a:hover {
+ color: #9999FF;
+ background: inherit;
+}
+
table.tinybicol td, table.bicol td {
color: #000000;
background: inherit;
function handlers()
{
return array(
+ 'login' => $this->make_hook('login', AUTH_COOKIE),
'groupex/donne-chall.php'
=> $this->make_hook('chall', AUTH_PUBLIC),
'groupex/export-econfiance.php'
);
}
+ function handler_login(&$page)
+ {
+ $allkeys = func_get_args();
+ unset($allkeys[0]);
+ $url = join('/',$allkeys);
+ pl_redirect($url ? $url : 'events');
+ }
+
function handler_chall(&$page)
{
$_SESSION["chall"] = uniqid(rand(), 1);
function handler_groupex(&$page)
{
require_once dirname(__FILE__).'/auth/auth.inc.php';
+ $page->assign('referer', true);
$gpex_pass = $_GET["pass"];
$gpex_url = urldecode($_GET["url"]);
</p>
</noscript>
-{if $smarty.server.HTTP_REFERER}
+{if $referer || $platal->pl_self() neq 'login'}
<h1>
Accès restreint
</h1>
<p>
Bonjour,<br />
- La page que vous avez demandé (<strong>{$smarty.server.HTTP_REFERER}</strong>) nécessite une authentification
+ La page que vous avez demandé
+ (<strong>{if $referer}{$smarty.server.HTTP_REFERER}{else}{$globals->baseurl}/{$platal->pl_self()}{/if}</strong>)
+ nécessite une authentification.
</p>
{else}
<h1>
<form action="{$smarty.server.REQUEST_URI}" method="post" id="login" onsubmit="doChallengeResponse(); return false;">
<table class="bicol" cellpadding="4" summary="Formulaire de login">
<tr>
- <th colspan="2">Connexion</th>
+ <th colspan="2">{if $smarty.server.HTTPS}{icon name=lock}{/if} Identification
+ {if !$smarty.server.HTTPS}
+ (<a href="{$globals->baseurl|replace:"http":"https"}/{$platal->pl_self()}">{icon name=lock_add} Passer en connexion sécurisée</a>)
+ {/if}
+ </th>
</tr>
<tr style="white-space: nowrap">
<td class="titre">
(Activer obligatoirement le <strong>javascript</strong>)
</p>
+<hr />
+
+<div class="smaller">
+ {if $smarty.server.HTTPS}
+ {icon name=lock} : Vous utilisez actuellement une connexion HTTPS sécurisée. Aucune information ne circule
+ en clair entre chez vous en Polytechnique.org, ce qui permet d'assurer une confidentialité maximale.
+ {else}
+ {icon name=lock_open} : Vous utilisez actuellement une connexion HTTP non sécurisée. Toutes les informations
+ (<strong>excepté le mot de passe de connexion au site</strong>) circulent en clair entre chez vous et
+ Polytechnique.org. Il vous est possible d'utiliser une connexion sécurisée en cliquant sur le lien
+ <div class="center">
+ <a href="{$globals->baseurl|replace:"http":"https"}/{$platal->pl_self()}">
+ {icon name=lock_add} Passer en connexion sécurisée</a>
+ </div><br />
+ Plus d'informations sur la connexion sécurisée se trouvent
+ <a href="Xorg/CertificatDeSécurité?display=light" class="popup2">sur cette page</a>.
+ {/if}
+</div>
+
{if $smarty.request.response}<!-- failed login code //-->
<br />
<div class="erreur">
{if !$smarty.session.auth}
<div class="menu_title">Polytechniciens</div>
-<div class="menu_item"><a href="events">Me connecter !</a></div>
+<div class="menu_item"><a href="login">Me connecter !</a></div>
<div class="menu_item"><a href="register">M'inscrire</a></div>
<div class="menu_item"><a href="Xorg/PourquoiMInscrire">Pourquoi m'inscrire ?</a></div>