allow buttons in module settings
This commit is contained in:
parent
f9f7724438
commit
1883fe086f
|
@ -219,8 +219,8 @@ for ($i = 0; $i < sizeof($modules); $i++) {
|
||||||
if ($iconImage != null) {
|
if ($iconImage != null) {
|
||||||
$icon = '<img align="middle" src="../../graphics/' . $iconImage . '" alt="' . $iconImage . '"> ';
|
$icon = '<img align="middle" src="../../graphics/' . $iconImage . '" alt="' . $iconImage . '"> ';
|
||||||
}
|
}
|
||||||
echo "<legend>$icon<b>" . getModuleAlias($modules[$i], "none") . "</b></legend>\n";
|
echo "<legend>$icon" . getModuleAlias($modules[$i], "none") . "</legend>\n";
|
||||||
$configTypes = parseHtml($modules[$i], $options[$modules[$i]], $old_options, true, $tabindex, 'user');
|
$configTypes = parseHtml($modules[$i], $options[$modules[$i]], $old_options, false, $tabindex, 'user');
|
||||||
$_SESSION['conf_types'] = array_merge($configTypes, $_SESSION['conf_types']);
|
$_SESSION['conf_types'] = array_merge($configTypes, $_SESSION['conf_types']);
|
||||||
echo "</fieldset>\n";
|
echo "</fieldset>\n";
|
||||||
echo "<br>";
|
echo "<br>";
|
||||||
|
@ -272,6 +272,10 @@ function checkInput() {
|
||||||
elseif ($_SESSION['conf_types'][$element] == "text_obfuscated") {
|
elseif ($_SESSION['conf_types'][$element] == "text_obfuscated") {
|
||||||
$options[$element] = array(obfuscateText($_POST[$element]));
|
$options[$element] = array(obfuscateText($_POST[$element]));
|
||||||
}
|
}
|
||||||
|
// hidden fields
|
||||||
|
elseif ($_SESSION['conf_types'][$element] == "hidden") {
|
||||||
|
$options[$element] = array($_POST[$element]);
|
||||||
|
}
|
||||||
// checkboxes
|
// checkboxes
|
||||||
elseif ($_SESSION['conf_types'][$element] == "checkbox") {
|
elseif ($_SESSION['conf_types'][$element] == "checkbox") {
|
||||||
if (isset($_POST[$element]) && ($_POST[$element] == "on")) $options[$element] = array('true');
|
if (isset($_POST[$element]) && ($_POST[$element] == "on")) $options[$element] = array('true');
|
||||||
|
|
Loading…
Reference in New Issue