mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Encrypt hidden plug-in module macros.
This commit is contained in:
parent
ada0f3b20c
commit
aafd6d56ca
@ -886,7 +886,11 @@ if ($update_module || $create_module) {
|
|||||||
$macros = json_decode(base64_decode($macros), true);
|
$macros = json_decode(base64_decode($macros), true);
|
||||||
|
|
||||||
foreach($macros as $k => $m) {
|
foreach($macros as $k => $m) {
|
||||||
$macros[$k]['value'] = get_parameter($m['macro'], '');
|
if ($m['hide'] == "1") {
|
||||||
|
$macros[$k]['value'] = io_input_password(get_parameter($m['macro'], ''));
|
||||||
|
} else {
|
||||||
|
$macros[$k]['value'] = get_parameter($m['macro'], '');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$macros = io_json_mb_encode($macros);
|
$macros = io_json_mb_encode($macros);
|
||||||
|
@ -90,7 +90,7 @@ if (!empty($macros)) {
|
|||||||
$m_hide = $m['hide'];
|
$m_hide = $m['hide'];
|
||||||
|
|
||||||
if ($m_hide) {
|
if ($m_hide) {
|
||||||
$data[1] = html_print_input_password($m['macro'], $m['value'], '', 100, 255, true);
|
$data[1] = html_print_input_password($m['macro'], io_output_password($m['value']), '', 100, 255, true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data[1] = html_print_input_text($m['macro'], $m['value'], '', 100, 255, true);
|
$data[1] = html_print_input_text($m['macro'], $m['value'], '', 100, 255, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user