From ffdee544cbf168ad3448895d89a4d493372d9f82 Mon Sep 17 00:00:00 2001 From: Phyks Date: Fri, 9 Aug 2013 23:47:01 +0200 Subject: [PATCH] Remember last entered login in connection form --- TODO | 2 +- index.php | 3 ++- tmp/connexion.af3906cfde643ae7f290cfdc51cc9342.rtpl.php | 2 +- tpl/connexion.html | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index f304309..c4cfd17 100755 --- a/TODO +++ b/TODO @@ -1,11 +1,11 @@ * i18n * Vérification des variables dans les classes + throw exception * tokens + ban system -* TRUNCATE before CREATE TABLE in install.php install.php : ============= * Link beside password field to toggle visible / not visible +* TRUNCATE before CREATE TABLE in install.php index.php : =========== diff --git a/index.php b/index.php index e296ab3..baad3a7 100644 --- a/index.php +++ b/index.php @@ -7,7 +7,7 @@ raintpl::$cache_dir = 'tmp/'; $tpl = new raintpl(); - $tpl->assign('instance_title', INSTANCE_TITLE); + $tpl->assign('instance_title', htmlspecialchars(INSTANCE_TITLE)); $tpl->assign('connection', false); $tpl->assign('notice', ''); $tpl->assign('error', ''); @@ -42,6 +42,7 @@ } } $tpl->assign('connection', true); + $tpl->assign('user_post', (!empty($_POST['login'])) ? htmlspecialchars($_POST['login']) : ''); $tpl->draw('connexion'); break; diff --git a/tmp/connexion.af3906cfde643ae7f290cfdc51cc9342.rtpl.php b/tmp/connexion.af3906cfde643ae7f290cfdc51cc9342.rtpl.php index 59e152d..17712a4 100644 --- a/tmp/connexion.af3906cfde643ae7f290cfdc51cc9342.rtpl.php +++ b/tmp/connexion.af3906cfde643ae7f290cfdc51cc9342.rtpl.php @@ -4,7 +4,7 @@

- Connexion

-

+

diff --git a/tpl/connexion.html b/tpl/connexion.html index bd1fd66..18d1c68 100644 --- a/tpl/connexion.html +++ b/tpl/connexion.html @@ -3,7 +3,7 @@

{$instance_title} - Connexion

-

+