Overview
Comment: | Un peu de couleur pour le cadenas, et un peu de régularisation des types |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
ff010feb8bad217a2d84ceb99e21c67a |
User & Date: | bohwaz on 2015-12-09 12:47:29 |
Other Links: | manifest | tags |
Context
2015-12-09
| ||
12:48 | Forcément la typo check-in: 5b0a7866e3 user: bohwaz tags: trunk, stable | |
12:47 | Un peu de couleur pour le cadenas, et un peu de régularisation des types check-in: ff010feb8b user: bohwaz tags: trunk, stable | |
12:42 | Intégration de la préférence d'utilisation de HTTPS (ou non) check-in: fc7970d376 user: bohwaz tags: trunk, stable | |
Changes
Modified src/templates/admin/login.tpl from [e5872508d1] to [c617bf50c9].
︙ | ︙ | |||
24 25 26 27 28 29 30 | <legend>Connexion</legend> <dl> <dt><label for="f_id">{$champ.title}</label></dt> <dd><input type="text" name="id" id="f_id" value="{form_field name=id}" /></dd> <dt><label for="f_passe">Mot de passe</label></dt> <dd><input type="password" name="passe" id="f_passe" value="" /> {if $ssl_enabled} | | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | <legend>Connexion</legend> <dl> <dt><label for="f_id">{$champ.title}</label></dt> <dd><input type="text" name="id" id="f_id" value="{form_field name=id}" /></dd> <dt><label for="f_passe">Mot de passe</label></dt> <dd><input type="password" name="passe" id="f_passe" value="" /> {if $ssl_enabled} <b class="icn confirm" title="Connexion chiffrée">🔒</b> <span class="confirm">Connexion sécurisée</span> {else} <b class="icn error" title="Connexion non chiffrée">🔓</b> {if $prefer_ssl} <span class="error">Connexion non-sécurisée&nbps;!</span> <a href="{$own_https_url}">Se connecter en HTTPS (sécurisé)</a> {else} <span class="alert">Connexion non-sécurisée</span> {/if} {/if} |
︙ | ︙ |
Modified src/www/admin/_inc.php from [9d5487ab7c] to [0483c8df72].
1 2 3 4 5 6 7 | <?php namespace Garradin; require_once __DIR__ . '/../../include/init.php'; // Redirection automatique en HTTPS si nécessaire | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <?php namespace Garradin; require_once __DIR__ . '/../../include/init.php'; // Redirection automatique en HTTPS si nécessaire if (PREFER_HTTPS !== true && PREFER_HTTPS >= 2 && empty($_SERVER['HTTPS']) && empty($_POST)) { utils::redirect(str_replace('http://', 'https://', utils::getSelfURL())); exit; } $tpl = Template::getInstance(); $tpl->assign('admin_url', WWW_URL . 'admin/'); $membres = new Membres; |
︙ | ︙ |
Modified src/www/admin/login.php from [21842de4e9] to [aecfcafaf0].
︙ | ︙ | |||
45 46 47 48 49 50 51 | } $champs = $config->get('champs_membres'); $champ = $champs->get($config->get('champ_identifiant')); $tpl->assign('ssl_enabled', empty($_SERVER['HTTPS']) ? false : true); | | | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | } $champs = $config->get('champs_membres'); $champ = $champs->get($config->get('champ_identifiant')); $tpl->assign('ssl_enabled', empty($_SERVER['HTTPS']) ? false : true); $tpl->assign('prefer_ssl', (bool)PREFER_HTTPS); $tpl->assign('own_https_url', str_replace('http://', 'https://', utils::getSelfURL())); $tpl->assign('champ', $champ); $tpl->assign('error', $error); $tpl->display('admin/login.tpl'); |