From 1757927cd50c8a94d76700b32917a9345fe74d85 Mon Sep 17 00:00:00 2001 From: alexhigh Date: Wed, 4 Jun 2014 17:09:30 +0000 Subject: [PATCH] 2014-06-04 Alejandro Gallardo * godmode/setup/setup_general.php: Disable the "Enable Netflow" radio buttons if the server is installed on a Windows machine. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/godmode/setup/setup_general.php | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d0bdf56050..d1286fe677 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2014-06-04 Alejandro Gallardo + + * godmode/setup/setup_general.php: Disable the "Enable + Netflow" radio buttons if the server is installed on a + Windows machine. + 2014-06-04 Sergio Martin * include/help/es/help_plugin_macros.php diff --git a/pandora_console/godmode/setup/setup_general.php b/pandora_console/godmode/setup/setup_general.php index 69dd73cbd2..e7cef9be80 100644 --- a/pandora_console/godmode/setup/setup_general.php +++ b/pandora_console/godmode/setup/setup_general.php @@ -161,8 +161,13 @@ if ($config["integria_enabled"]) { } $table->data[19][0] = __('Enable Netflow'); -$table->data[19][1] = __('Yes').'   '.html_print_radio_button ('activate_netflow', 1, '', $config["activate_netflow"], true).'  '; -$table->data[19][1] .= __('No').'   '.html_print_radio_button ('activate_netflow', 0, '', $config["activate_netflow"], true); +$rbt_disabled = false; +if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) { + $rbt_disabled = true; + $table->data[19][0] .= ui_print_help_tip (__('Not supported in Windows systems.'), true); +} +$table->data[19][1] = __('Yes').'   '.html_print_radio_button_extended ('activate_netflow', 1, '', $config["activate_netflow"], $rbt_disabled, '', '', true).'  '; +$table->data[19][1] .= __('No').'   '.html_print_radio_button_extended ('activate_netflow', 0, '', $config["activate_netflow"], $rbt_disabled, '', '', true); $zone_name = array('Africa' => __('Africa'), 'America' => __('America'), 'Antarctica' => __('Antarctica'), 'Arctic' => __('Arctic'), 'Asia' => __('Asia'), 'Atlantic' => __('Atlantic'), 'Australia' => __('Australia'), 'Europe' => __('Europe'), 'Indian' => __('Indian'), 'Pacific' => __('Pacific'), 'UTC' => __('UTC'));