From c29104ba832959a88a36629d579c56dfa4983dd1 Mon Sep 17 00:00:00 2001
From: Phyks
Date: Wed, 4 Sep 2013 23:04:05 +0200
Subject: [PATCH] Toggle to set password visible
---
TODO | 1 +
index.php | 4 ++++
install.php | 4 ++--
tpl/connection.html | 2 +-
tpl/css/style.css | 11 +++++++++++
tpl/edit_users.html | 4 ++--
tpl/img/toggleVisible.png | Bin 0 -> 490 bytes
tpl/settings.html | 2 +-
8 files changed, 22 insertions(+), 6 deletions(-)
create mode 100644 tpl/img/toggleVisible.png
diff --git a/TODO b/TODO
index 8ff3bfb..14a5cb8 100755
--- a/TODO
+++ b/TODO
@@ -18,6 +18,7 @@ TODO :
* Add / Edit a bill
* JSON output
* Arrow to toggle visible password
+* Change tpl easily
To test :
=========
diff --git a/index.php b/index.php
index 1397179..af4d643 100644
--- a/index.php
+++ b/index.php
@@ -10,6 +10,7 @@
require_once('inc/CSRF.inc.php');
raintpl::$tpl_dir = 'tpl/';
raintpl::$cache_dir = 'tmp/';
+ raintpl::configure('base_url', htmlspecialchars(BASE_URL));
// Define raintpl instance
$tpl = new raintpl();
@@ -20,6 +21,9 @@
$tpl->assign('base_url', htmlspecialchars(BASE_URL));
$tpl->assign('currency', htmlspecialchars(CURRENCY));
$tpl->assign('email_webmaster', htmlspecialchars(EMAIL_WEBMASTER));
+
+ // TODO : Avoid a bug in rainTPL with img near input
+ $tpl->configure('path_replace_list', array('a', 'img', 'link', 'script'));
// Set sessions parameters
ini_set('session.use_cookies', 1);
diff --git a/install.php b/install.php
index 7826415..6207175 100644
--- a/install.php
+++ b/install.php
@@ -139,7 +139,7 @@
-
+
Note : You must create this database first.
@@ -165,7 +165,7 @@
/>
/>
-
+
type="submit" value="Install">
diff --git a/tpl/connection.html b/tpl/connection.html
index f206ce4..f1e722a 100644
--- a/tpl/connection.html
+++ b/tpl/connection.html
@@ -4,7 +4,7 @@
-
+
{if condition="$user_id != -1"}
Note : Leave blank this field if you don't want to edit password.
{/if}
@@ -58,7 +58,7 @@
Edit your password
{/if}
diff --git a/tpl/img/toggleVisible.png b/tpl/img/toggleVisible.png
new file mode 100644
index 0000000000000000000000000000000000000000..4fad9d27042af0b979e619eed29cc75a8bc7f25f
GIT binary patch
literal 490
zcmVT%j04)JhXPoNPbsBsRpG7QSZS(08lB@0x<+DFtbxt*Z#CJ!k8PTJ1G;Koe07M6Y
-
+
Note : Leave the above field blank if you don't want to change your password.