This commit is contained in:
marcos 2019-12-18 15:15:25 +01:00
parent 35136ada8e
commit 91fe85e90e
2 changed files with 10 additions and 8 deletions

View File

@ -179,6 +179,7 @@ if (!$action_update_url_update_manager) {
}
echo '<form method="post" action="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=setup">';
html_print_input_hidden('update_config', 1);
$table = new stdClass();
$table->width = '100%';
@ -259,6 +260,7 @@ if (license_free()) {
}
html_print_input_hidden('action_update_url_update_manager', 1);
html_print_input_hidden('update_config', 1);
html_print_table($table);
echo '<div class="action-buttons" style="width: '.$table->width.'">';

View File

@ -148,8 +148,15 @@ function config_update_config()
$error_update = [];
$sec2 = get_parameter_get('sec2');
$sec2 = get_parameter('sec2');
switch ($sec2) {
case 'godmode/update_manager/update_manager':
if (!config_update_value('update_manager_proxy_password', io_input_password(get_parameter('update_manager_proxy_password', $config['update_manager_proxy_password'])))) {
$error_update[] = __('update manager');
}
break;
case 'godmode/setup/setup':
$section_setup = get_parameter('section');
// MAIN SETUP.
@ -2895,13 +2902,6 @@ function config_process_config()
);
}
if (!isset($config['update_manager_proxy_password'])) {
config_update_value(
'update_manager_proxy_password',
''
);
}
if (!isset($config['session_timeout'])) {
config_update_value('session_timeout', 90);
}