mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#12201 Added configuration in the setup for easter egg
This commit is contained in:
parent
558279e61b
commit
1f51b0475e
@ -767,6 +767,16 @@ $table->data[$i][] = html_print_label_input_block(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$table->data[$i][] = html_print_label_input_block(
|
||||||
|
__('Eastern eggs disabled'),
|
||||||
|
html_print_checkbox_switch(
|
||||||
|
'eastern_eggs_disabled',
|
||||||
|
1,
|
||||||
|
$config['eastern_eggs_disabled'],
|
||||||
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
echo '<form class="max_floating_element_size" id="form_setup" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/setup&section=general&pure='.$config['pure'].'">';
|
echo '<form class="max_floating_element_size" id="form_setup" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/setup&section=general&pure='.$config['pure'].'">';
|
||||||
|
|
||||||
|
@ -371,6 +371,10 @@ function config_update_config()
|
|||||||
$error_update[] = __('show_experimental_features');
|
$error_update[] = __('show_experimental_features');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config_update_value('eastern_eggs_disabled', get_parameter('eastern_eggs_disabled'), true) === false) {
|
||||||
|
$error_update[] = __('eastern_eggs_disabled');
|
||||||
|
}
|
||||||
|
|
||||||
if (config_update_value('console_log_enabled', get_parameter('console_log_enabled'), true) === false) {
|
if (config_update_value('console_log_enabled', get_parameter('console_log_enabled'), true) === false) {
|
||||||
$error_update[] = __('Console log enabled');
|
$error_update[] = __('Console log enabled');
|
||||||
}
|
}
|
||||||
@ -2449,6 +2453,10 @@ function config_process_config()
|
|||||||
config_update_value('show_experimental_features', 0);
|
config_update_value('show_experimental_features', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($config['eastern_eggs_disabled'])) {
|
||||||
|
config_update_value('eastern_eggs_disabled', 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($config['agent_vulnerabilities'])) {
|
if (!isset($config['agent_vulnerabilities'])) {
|
||||||
config_update_value('agent_vulnerabilities', 1);
|
config_update_value('agent_vulnerabilities', 1);
|
||||||
}
|
}
|
||||||
|
@ -1515,6 +1515,15 @@ echo html_print_div(
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
echo html_print_input_hidden(
|
||||||
|
'flagEasternEgg',
|
||||||
|
$config['eastern_eggs_disabled'],
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'flagEasternEgg'
|
||||||
|
);
|
||||||
|
|
||||||
// Connection lost alert.
|
// Connection lost alert.
|
||||||
set_js_value('check_conexion_interval', $config['check_conexion_interval']);
|
set_js_value('check_conexion_interval', $config['check_conexion_interval']);
|
||||||
set_js_value('title_conexion_interval', __('Connection with console has been lost'));
|
set_js_value('title_conexion_interval', __('Connection with console has been lost'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user