updates2
This commit is contained in:
parent
35136ada8e
commit
91fe85e90e
|
@ -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">';
|
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 = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
|
@ -259,6 +260,7 @@ if (license_free()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
html_print_input_hidden('action_update_url_update_manager', 1);
|
html_print_input_hidden('action_update_url_update_manager', 1);
|
||||||
|
html_print_input_hidden('update_config', 1);
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
|
|
||||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||||
|
|
|
@ -148,8 +148,15 @@ function config_update_config()
|
||||||
|
|
||||||
$error_update = [];
|
$error_update = [];
|
||||||
|
|
||||||
$sec2 = get_parameter_get('sec2');
|
$sec2 = get_parameter('sec2');
|
||||||
|
|
||||||
switch ($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':
|
case 'godmode/setup/setup':
|
||||||
$section_setup = get_parameter('section');
|
$section_setup = get_parameter('section');
|
||||||
// MAIN SETUP.
|
// 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'])) {
|
if (!isset($config['session_timeout'])) {
|
||||||
config_update_value('session_timeout', 90);
|
config_update_value('session_timeout', 90);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue