#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'].'">';
|
||||
|
||||
|
|
|
@ -371,6 +371,10 @@ function config_update_config()
|
|||
$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) {
|
||||
$error_update[] = __('Console log enabled');
|
||||
}
|
||||
|
@ -2449,6 +2453,10 @@ function config_process_config()
|
|||
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'])) {
|
||||
config_update_value('agent_vulnerabilities', 1);
|
||||
}
|
||||
|
|
|
@ -1515,6 +1515,15 @@ echo html_print_div(
|
|||
true
|
||||
);
|
||||
|
||||
echo html_print_input_hidden(
|
||||
'flagEasternEgg',
|
||||
$config['eastern_eggs_disabled'],
|
||||
false,
|
||||
'',
|
||||
'',
|
||||
'flagEasternEgg'
|
||||
);
|
||||
|
||||
// Connection lost alert.
|
||||
set_js_value('check_conexion_interval', $config['check_conexion_interval']);
|
||||
set_js_value('title_conexion_interval', __('Connection with console has been lost'));
|
||||
|
|
Loading…
Reference in New Issue