mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Setup updates
This commit is contained in:
parent
3782fdaaf6
commit
8d7620e88d
@ -680,7 +680,7 @@ $table->data[$i][] = html_print_label_input_block(
|
|||||||
|
|
||||||
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'].'">';
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('General options').'</legend>';
|
echo '<legend>'.__('General options').'</legend>';
|
||||||
|
|
||||||
html_print_input_hidden('update_config', 1);
|
html_print_input_hidden('update_config', 1);
|
||||||
@ -695,7 +695,7 @@ $encryption = [
|
|||||||
|
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('Mail configuration').'</legend>';
|
echo '<legend>'.__('Mail configuration').'</legend>';
|
||||||
|
|
||||||
ui_print_warning_message(
|
ui_print_warning_message(
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||||
*
|
*
|
||||||
* ============================================================================
|
* ============================================================================
|
||||||
* Copyright (c) 2005-2022 Artica Soluciones Tecnologicas
|
* Copyright (c) 2005-2023 Artica Soluciones Tecnologicas
|
||||||
* Please see http://pandorafms.org for full contribution list
|
* Please see http://pandorafms.org for full contribution list
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
@ -37,46 +37,66 @@ $update = (bool) get_parameter('update');
|
|||||||
|
|
||||||
$table = new stdClass();
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
|
$table->class = 'databox filter-table-adv';
|
||||||
$table->border = 0;
|
$table->border = 0;
|
||||||
$table->cellspacing = 3;
|
|
||||||
$table->cellpadding = 5;
|
|
||||||
$table->class = 'databox filters';
|
|
||||||
|
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
|
|
||||||
$table->data[0][0] = '<b>'.__('Data storage path').'</b>';
|
$table->data[0][] = html_print_label_input_block(
|
||||||
$table->data[0][1] = html_print_input_text('netflow_path', $config['netflow_path'], false, 50, 200, true);
|
__('Data storage path'),
|
||||||
|
html_print_input_text('netflow_path', $config['netflow_path'], false, 50, 200, true)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[1][0] = '<b>'.__('Daemon interval').'</b>';
|
$table->data[0][] = html_print_label_input_block(
|
||||||
$table->data[1][1] = html_print_input_text('netflow_interval', $config['netflow_interval'], false, 50, 200, true);
|
__('Daemon interval'),
|
||||||
|
html_print_input_text('netflow_interval', $config['netflow_interval'], false, 50, 200, true)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[2][0] = '<b>'.__('Daemon binary path').'</b>';
|
$table->data[1][] = html_print_label_input_block(
|
||||||
$table->data[2][1] = html_print_input_text('netflow_daemon', $config['netflow_daemon'], false, 50, 200, true);
|
__('Daemon binary path'),
|
||||||
|
html_print_input_text('netflow_daemon', $config['netflow_daemon'], false, 50, 200, true)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[3][0] = '<b>'.__('Nfdump binary path').'</b>';
|
$table->data[1][] = html_print_label_input_block(
|
||||||
$table->data[3][1] = html_print_input_text('netflow_nfdump', $config['netflow_nfdump'], false, 50, 200, true);
|
__('Nfdump binary path'),
|
||||||
|
html_print_input_text('netflow_nfdump', $config['netflow_nfdump'], false, 50, 200, true)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[4][0] = '<b>'.__('Nfexpire binary path').'</b>';
|
$table->data[2][] = html_print_label_input_block(
|
||||||
$table->data[4][1] = html_print_input_text('netflow_nfexpire', $config['netflow_nfexpire'], false, 50, 200, true);
|
__('Nfexpire binary path'),
|
||||||
|
html_print_input_text('netflow_nfexpire', $config['netflow_nfexpire'], false, 50, 200, true)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[5][0] = '<b>'.__('Maximum chart resolution').'</b>';
|
$table->data[2][] = html_print_label_input_block(
|
||||||
$table->data[5][1] = html_print_input_text('netflow_max_resolution', $config['netflow_max_resolution'], false, 50, 200, true);
|
__('Maximum chart resolution'),
|
||||||
|
html_print_input_text('netflow_max_resolution', $config['netflow_max_resolution'], false, 50, 200, true)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[6][0] = '<b>'.__('Disable custom live view filters').'</b>';
|
$table->data[3][] = html_print_label_input_block(
|
||||||
$table->data[6][1] = html_print_checkbox_switch('netflow_disable_custom_lvfilters', 1, $config['netflow_disable_custom_lvfilters'], true);
|
__('Disable custom live view filters'),
|
||||||
$table->data[7][0] = '<b>'.__('Netflow max lifetime').'</b>';
|
html_print_checkbox_switch('netflow_disable_custom_lvfilters', 1, $config['netflow_disable_custom_lvfilters'], true)
|
||||||
$table->data[7][1] = html_print_input_text('netflow_max_lifetime', $config['netflow_max_lifetime'], false, 50, 200, true);
|
);
|
||||||
|
|
||||||
|
$table->data[3][] = html_print_label_input_block(
|
||||||
|
__('Netflow max lifetime'),
|
||||||
|
html_print_input_text('netflow_max_lifetime', $config['netflow_max_lifetime'], false, 50, 200, true)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[8][0] = '<b>'.__('Name resolution for IP address').'</b>';
|
|
||||||
$onclick = "if (!confirm('".__('Warning').'. '.__('IP address resolution can take a lot of time')."')) return false;";
|
$onclick = "if (!confirm('".__('Warning').'. '.__('IP address resolution can take a lot of time')."')) return false;";
|
||||||
$table->data[8][1] = html_print_checkbox_switch_extended('netflow_get_ip_hostname', 1, $config['netflow_get_ip_hostname'], false, $onclick, '', true);
|
$table->data[4][] = html_print_label_input_block(
|
||||||
|
__('Name resolution for IP address'),
|
||||||
echo '<form id="netflow_setup" method="post">';
|
html_print_checkbox_switch_extended('netflow_get_ip_hostname', 1, $config['netflow_get_ip_hostname'], false, $onclick, '', true)
|
||||||
|
);
|
||||||
|
|
||||||
|
echo '<form class="max_floating_element_size" id="netflow_setup" method="post">';
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
|
html_print_input_hidden('update_config', 1);
|
||||||
// Update button.
|
html_print_action_buttons(
|
||||||
echo '<div class="action-buttons w100p">';
|
html_print_submit_button(
|
||||||
html_print_input_hidden('update_config', 1);
|
__('Update'),
|
||||||
html_print_submit_button(__('Update'), 'upd_button', false, 'class="sub upd"');
|
'upd_button',
|
||||||
echo '</div></form>';
|
false,
|
||||||
|
['icon' => 'update'],
|
||||||
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
|
echo '</form>';
|
||||||
|
@ -2041,47 +2041,47 @@ $row++;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('Behaviour configuration').' '.ui_print_help_icon('behavoir_conf_tab', true).'</legend>';
|
echo '<legend>'.__('Behaviour configuration').' '.ui_print_help_icon('behavoir_conf_tab', true).'</legend>';
|
||||||
html_print_table($table_behaviour);
|
html_print_table($table_behaviour);
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('GIS configuration').' '.ui_print_help_icon('gis_conf_tab', true).'</legend>';
|
echo '<legend>'.__('GIS configuration').' '.ui_print_help_icon('gis_conf_tab', true).'</legend>';
|
||||||
html_print_table($table_gis);
|
html_print_table($table_gis);
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('Style configuration').' '.ui_print_help_icon('style_conf_tab', true).'</legend>';
|
echo '<legend>'.__('Style configuration').' '.ui_print_help_icon('style_conf_tab', true).'</legend>';
|
||||||
html_print_table($table_styles);
|
html_print_table($table_styles);
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('Charts configuration').' '.ui_print_help_icon('charts_conf_tab', true).'</legend>';
|
echo '<legend>'.__('Charts configuration').' '.ui_print_help_icon('charts_conf_tab', true).'</legend>';
|
||||||
html_print_table($table_chars);
|
html_print_table($table_chars);
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('Font and Text configuration').' '.ui_print_help_icon('front_and_text_conf_tab', true).'</legend>';
|
echo '<legend>'.__('Font and Text configuration').' '.ui_print_help_icon('front_and_text_conf_tab', true).'</legend>';
|
||||||
html_print_table($table_font);
|
html_print_table($table_font);
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('Visual consoles configuration').' '.ui_print_help_icon('visual_consoles_conf_tab', true).'</legend>';
|
echo '<legend>'.__('Visual consoles configuration').' '.ui_print_help_icon('visual_consoles_conf_tab', true).'</legend>';
|
||||||
html_print_table($table_vc);
|
html_print_table($table_vc);
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('Reports configuration ').ui_print_help_icon('reports_configuration_tab', true).'</legend>';
|
echo '<legend>'.__('Reports configuration ').ui_print_help_icon('reports_configuration_tab', true).'</legend>';
|
||||||
html_print_table($table_report);
|
html_print_table($table_report);
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('Services configuration').' '.ui_print_help_icon('services_conf_tab', true).'</legend>';
|
echo '<legend>'.__('Services configuration').' '.ui_print_help_icon('services_conf_tab', true).'</legend>';
|
||||||
html_print_table($table_ser);
|
html_print_table($table_ser);
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
|
|
||||||
echo '<fieldset>';
|
echo '<fieldset class="margin-bottom-10">';
|
||||||
echo '<legend>'.__('Other configuration').' '.ui_print_help_icon('other_conf_tab', true).'</legend>';
|
echo '<legend>'.__('Other configuration').' '.ui_print_help_icon('other_conf_tab', true).'</legend>';
|
||||||
html_print_table($table_other);
|
html_print_table($table_other);
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user