From 524989cfd1ac2ab2a43731a00588dde50599477f Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 27 Feb 2012 17:00:49 +0000 Subject: [PATCH] support obfuscated text fields --- lam/templates/config/moduleSettings.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lam/templates/config/moduleSettings.php b/lam/templates/config/moduleSettings.php index 2abf977a..e0a1df07 100644 --- a/lam/templates/config/moduleSettings.php +++ b/lam/templates/config/moduleSettings.php @@ -198,7 +198,7 @@ $old_options = $conf->get_moduleSettings(); // display module boxes -$tabindex = 0; +$tabindex = 1; $modules = array_keys($options); $_SESSION['conf_types'] = array(); for ($i = 0; $i < sizeof($modules); $i++) { @@ -259,6 +259,10 @@ function checkInput() { if ($_SESSION['conf_types'][$element] == "text") { $options[$element] = array($_POST[$element]); } + // text fields + elseif ($_SESSION['conf_types'][$element] == "text_obfuscated") { + $options[$element] = array(obfuscateText($_POST[$element])); + } // checkboxes elseif ($_SESSION['conf_types'][$element] == "checkbox") { if (isset($_POST[$element]) && ($_POST[$element] == "on")) $options[$element] = array('true');