From 614db8b523aae65034fd367ddd18f2235b61bb88 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 9 May 2018 11:49:12 +0200 Subject: [PATCH 01/56] [Rebranding] Added product name and copyright notice to setup --- pandora_console/include/functions.php | 28 ++++++++++++++++++++ pandora_console/include/functions_config.php | 6 ++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 6c4d0a8199..d0d4fd30da 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -2811,4 +2811,32 @@ function validate_address($address){ } return true; } + +/** + * Get the product name. + * + * @return string If the installation is open, it will be 'Pandora FMS'. + * If the product name stored is empty, it returns 'Pandora FMS' too. + */ +function get_product_name () { + $stored_name = enterprise_hook('enterprise_get_product_name'); + if (empty($stored_name) || $stored_name == ENTERPRISE_NOT_HOOK) { + return "Pandora FMS"; + } + return $stored_name; +} + +/** + * Get the copyright notice. + * + * @return string If the installation is open, it will be 'Artica ST'. + * If the product name stored is empty, it returns 'Artica ST' too. + */ +function get_copyright_notice () { + $stored_name = enterprise_hook('enterprise_get_copyright_notice'); + if (empty($stored_name) || $stored_name == ENTERPRISE_NOT_HOOK) { + return "Ártica ST"; + } + return $stored_name; +} ?> diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 87c8e9cb6a..4f78bdf79d 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -249,7 +249,11 @@ function config_update_config () { $error_update[] = __('Metaconsole agent cache'); if (!config_update_value ('log_collector', (bool)get_parameter('log_collector'))) $error_update[] = __('Activate Log Collector'); - + if (!config_update_value ('rb_product_name', (string)get_parameter('rb_product_name'))) + $error_update[] = __('Product name'); + if (!config_update_value ('rb_copyright_notice', (string)get_parameter('rb_copyright_notice'))) + $error_update[] = __('Copyright notice'); + $inventory_changes_blacklist = get_parameter('inventory_changes_blacklist', array()); if (!config_update_value ('inventory_changes_blacklist', implode(',',$inventory_changes_blacklist))) $error_update[] = __('Inventory changes blacklist'); From a3ebd008764e17b7f6c3d6cb5c2c957a22976fa7 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 9 May 2018 13:12:03 +0200 Subject: [PATCH 02/56] [Rebranding] Node setup and footer --- pandora_console/general/footer.php | 4 +-- pandora_console/general/login_required.php | 2 +- pandora_console/godmode/setup/setup_auth.php | 2 +- .../godmode/setup/setup_general.php | 27 ++++++------------- .../godmode/setup/setup_visuals.php | 12 ++++----- pandora_console/include/functions_config.php | 6 ++--- 6 files changed, 20 insertions(+), 33 deletions(-) diff --git a/pandora_console/general/footer.php b/pandora_console/general/footer.php index 99cebe8f2d..33c8493e26 100644 --- a/pandora_console/general/footer.php +++ b/pandora_console/general/footer.php @@ -45,11 +45,11 @@ else{ $build_package_version = $current_package; } -echo sprintf(__('Pandora FMS %s - Build %s - MR %s', $pandora_version, $build_package_version, $config["MR"])); +echo sprintf(__('%s %s - Build %s - MR %s', get_product_name(), $pandora_version, $build_package_version, $config["MR"])); echo '
'; echo ''. __('Page generated at') . ' '. date('F j, Y h:i a'); //Always use timestamp here -echo '
'.__("® Ártica ST").''; +echo '
® '.get_copyright_notice().''; if (isset ($config['debug'])) { $cache_info = array(); diff --git a/pandora_console/general/login_required.php b/pandora_console/general/login_required.php index 5cb52604c5..e6486665ea 100644 --- a/pandora_console/general/login_required.php +++ b/pandora_console/general/login_required.php @@ -83,7 +83,7 @@ echo '
data[0][0] = __('Language code for Pandora'); +$table->data[0][0] = __('Language code'); $table->data[0][1] = html_print_select_from_sql ( 'SELECT id_language, name FROM tlanguage', 'language', $current_system_lang , '', '', '', true); @@ -72,7 +72,7 @@ $table->data[10][1] = __('Yes').'   '.html_print_radio_button ('a $table->data[10][1] .= __('No').'   '.html_print_radio_button ('autoupdate', 0, '', $config["autoupdate"], true); $table->data[11][0] = __('Enforce https'); -$table->data[11][1] = __('Yes').'   '.html_print_radio_button_extended ('https', 1, '', $config["https"], false, "if (! confirm ('" . __('If SSL is not properly configured you will lose access to Pandora FMS Console. Do you want to continue?') . "')) return false", '', true) .'  '; +$table->data[11][1] = __('Yes').'   '.html_print_radio_button_extended ('https', 1, '', $config["https"], false, "if (! confirm ('" . __('If SSL is not properly configured you will lose access to %s Console. Do you want to continue?', get_product_name()) . "')) return false", '', true) .'  '; $table->data[11][1] .= __('No').'   '.html_print_radio_button ('https', 0, '', $config["https"], true); $table->data[12][0] = __('Use cert of SSL'); @@ -99,7 +99,7 @@ $table->data[16][0] = __('API password') . ui_print_help_tip (__("Please be careful if you put a password put https access."), true); $table->data[16][1] = html_print_input_password('api_password', io_output_password($config['api_password']), '', 25, 255, true); -$table->data[17][0] = __('Enable GIS features in Pandora Console'); +$table->data[17][0] = __('Enable GIS features'); $table->data[17][1] = __('Yes').'   '.html_print_radio_button ('activate_gis', 1, '', $config["activate_gis"], true).'  '; $table->data[17][1] .= __('No').'   '.html_print_radio_button ('activate_gis', 0, '', $config["activate_gis"], true); @@ -141,7 +141,6 @@ $table->data[23][1] .= ''.html_print_image ('images/penc $table->data[23][1] .= "  ". html_print_select($zone_name, 'zone', $zone_selected, 'show_timezone();', '', '', true); $table->data[23][1] .= "  ". html_print_select($timezone_n, 'timezone', $config["timezone"], '', '', '', true); - $sounds = get_sounds(); $table->data[24][0] = __('Sound for Alert fired'); $table->data[24][1] = html_print_select($sounds, 'sound_alert', $config['sound_alert'], 'replaySound(\'alert\');', '', '', true); @@ -159,12 +158,12 @@ $table->data[26][1] .= ' ' . ht $table->data[26][1] .= '
'; $table->data[28][0] = __('Public URL'); -$table->data[28][0] .= ui_print_help_tip(__('Set this value when your PandoraFMS across inverse proxy or for example with mod_proxy of Apache.') . - ' '.__('Without the index.php such as http://domain/pandora_url/'), true); +$table->data[28][0] .= ui_print_help_tip(__('Set this value when your %s across inverse proxy or for example with mod_proxy of Apache.', get_product_name()) . + ' '.__('Without the index.php such as http://domain/console_url/'), true); $table->data[28][1] = html_print_input_text ('public_url', $config['public_url'], '', 40, 255, true); $table->data[29][0] = __('Referer security'); -$table->data[29][0] .= ui_print_help_tip(__('When it is set as "yes" in some important sections check if the user have gone from url Pandora.'), true); +$table->data[29][0] .= ui_print_help_tip(__("If enabled, actively checks if the user comes from %s's URL", get_product_name()), true); $table->data[29][1] = __('Yes') . '   ' . html_print_radio_button ('referer_security', 1, '', $config["referer_security"], true) . '  '; @@ -281,20 +280,10 @@ function show_timezone () { } $(document).ready (function () { - + $("#zone").attr("hidden", true); $("#timezone").attr("hidden", true); - - $("input[name='acl_enterprise']").click(function() { - flag = $(this).is(':checked'); - if (flag == true) { - - } - }); - - + $("#change_timezone").click(function () { $("#zone").attr("hidden", false); $("#timezone").attr("hidden", false); diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index bbe0e20d27..3e7eda10f1 100755 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -386,7 +386,7 @@ $table_font->data[$row][1] = html_print_select($font_size_array, 'font_size', $row++; $table_font->data[$row][0] = __('Agent size text') . - ui_print_help_tip(__('When the agent name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true); + ui_print_help_tip(__('When the agent name has a lot of characters, it is needed to truncate it into N characters in some sections in %s Console', get_product_name()), true); $table_font->data[$row][1] = __('Small:') . html_print_input_text ('agent_size_text_small', $config["agent_size_text_small"], '', 3, 3, true); $table_font->data[$row][1] .= ' ' . __('Normal:') . @@ -394,19 +394,19 @@ $table_font->data[$row][1] .= ' ' . __('Normal:') . $row++; $table_font->data[$row][0] = __('Module size text') . - ui_print_help_tip(__('When the module name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true); + ui_print_help_tip(__('When the module name has a lot of characters, it is needed to truncate it into N characters in some sections in %s Console', get_product_name()), true); $table_font->data[$row][1] = __('Small:') . html_print_input_text ('module_size_text_small', $config["module_size_text_small"], '', 3, 3, true); $table_font->data[$row][1] .= ' ' . __('Normal:') . html_print_input_text ('module_size_text_medium', $config["module_size_text_medium"], '', 3, 3, true); $row++; -$table_font->data[$row][0] = __('Description size text') . ui_print_help_tip(__('When the description name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true); +$table_font->data[$row][0] = __('Description size text') . ui_print_help_tip(__('If the description name has a lot of characters, in some places in %s Console it is necessary to truncate it to N characters.', get_product_name()), true); $table_font->data[$row][1] = html_print_input_text ('description_size_text', $config["description_size_text"], '', 3, 3, true); $row++; $table_font->data[$row][0] = __('Item title size text') . - ui_print_help_tip(__('When the item title name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true); + ui_print_help_tip(__('When the item title name has a lot of characters, it is needed to truncate it into N characters in some sections in %s Console.', get_product_name()), true); $table_font->data[$row][1] = html_print_input_text('item_title_size_text', $config["item_title_size_text"], '', 3, 3, true); $row++; @@ -488,7 +488,7 @@ if (!enterprise_installed()) { $disabled_graph_precision = true; } -$table_chars->data[$row][0] = __('Data precision in PandoraFMS'); +$table_chars->data[$row][0] = __('Data precision'); $table_chars->data[$row][0] .= ui_print_help_tip(__('Number of decimals shown. It must be a number between 0 and 5, except in graphs.'), true); $table_chars->data[$row][1] = html_print_input_text ('graph_precision', $config["graph_precision"], '', 5, 5, true, $disabled_graph_precision, false, "onChange=\"change_precision()\""); $row++; @@ -665,7 +665,7 @@ $table_other->data['custom_report_front-font'][1] = html_print_select ($_fonts, $table_other->data['custom_report_front-logo'][0] = __('Custom report front') . ' - ' . __('Custom logo') . ui_print_help_tip( - __("The dir of custom logos is in your www Pandora Console in \"images/custom_logo\". You can upload more files (ONLY JPEG AND PNG) in upload tool in console."), true); + __("The dir of custom logos is in your www Console in 'images/custom_logo'. You can upload more files (ONLY JPEG AND PNG) in upload tool in console."), true); $table_other->data['custom_report_front-logo'][1] = html_print_select( $customLogos, 'custom_report_front_logo', diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 4f78bdf79d..776a0e5b03 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -126,7 +126,7 @@ function config_update_config () { switch ($section_setup) { case 'general': if (!config_update_value ('language', (string) get_parameter ('language'))) - $error_update[] = __('Language code for Pandora'); + $error_update[] = __('Language settings'); if (!config_update_value ('remote_config', (string) get_parameter ('remote_config'))) $error_update[] = __('Remote config directory'); if (!config_update_value ('loginhash_pwd', io_input_password((string) get_parameter ('loginhash_pwd')))) @@ -149,9 +149,7 @@ function config_update_config () { if (!config_update_value ('api_password', io_input_password(get_parameter('api_password')))) $error_update[] = __('API password'); if (!config_update_value ('activate_gis', (bool) get_parameter ('activate_gis'))) - $error_update[] = __('Enable GIS features in Pandora Console'); - if (!config_update_value ('integria_enabled', get_parameter ('integria_enabled'))) - $error_update[] = __('Enable Integria incidents in Pandora Console'); + $error_update[] = __('Enable GIS features'); if (!config_update_value ('integria_inventory', get_parameter ('integria_inventory'))) $error_update[] = __('Integria inventory'); if (!config_update_value ('integria_api_password', io_input_password(get_parameter ('integria_api_password')))) From 34b953964a34fc2aeecbcfde2a5267a14e7b154c Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 9 May 2018 13:42:20 +0200 Subject: [PATCH 03/56] [Rebranding] Added rebranding to extensions --- pandora_console/extensions/api_checker.php | 2 +- pandora_console/extensions/db_status.php | 8 ++++---- pandora_console/extensions/net_tools.php | 10 +++++----- pandora_console/extensions/pandora_logs.php | 2 +- pandora_console/extensions/realtime_graphs.php | 12 ++++++------ 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/pandora_console/extensions/api_checker.php b/pandora_console/extensions/api_checker.php index 6aecf21073..24f7bc31ed 100755 --- a/pandora_console/extensions/api_checker.php +++ b/pandora_console/extensions/api_checker.php @@ -101,7 +101,7 @@ function extension_api_checker() { $table->data[] = $row; $row = array(); - $row[] = __("Pandora Console URL"); + $row[] = __("%s Console URL", get_product_name()); $row[] = html_print_input_text('pandora_url', $pandora_url, '', 50, 255, true); $table->data[] = $row; diff --git a/pandora_console/extensions/db_status.php b/pandora_console/extensions/db_status.php index d184850a34..84cf67022d 100755 --- a/pandora_console/extensions/db_status.php +++ b/pandora_console/extensions/db_status.php @@ -180,10 +180,10 @@ function extension_db_check_tables_differences($connection_test, $diff_tables = array_diff($tables_test, $tables_system); ui_print_result_message( - empty($diff_tables), - __('Successful the DB Pandora has all tables'), - __('Pandora DB could not retrieve all tables. The missing tables are (%s)', - implode(", ", $diff_tables))); + !empty($diff_tables), + __('Success! %s DB contains all tables', get_product_name()), + __('%s DB could not retrieve all tables. The missing tables are (%s)', + get_product_name(), implode(", ", $diff_tables))); if (!empty($diff_tables)) { foreach ($diff_tables as $table) { diff --git a/pandora_console/extensions/net_tools.php b/pandora_console/extensions/net_tools.php index 2f18a569d4..a223f6aa96 100644 --- a/pandora_console/extensions/net_tools.php +++ b/pandora_console/extensions/net_tools.php @@ -313,23 +313,23 @@ function godmode_net_tools() { $table->data = array(); $table->data[0][0] = __("Traceroute path"); - $table->data[0][0] .= ui_print_help_tip(__('If it is empty, Pandora searchs the traceroute system.'), true); + $table->data[0][0] .= ui_print_help_tip(__('If empty, %s will search the traceroute system.', get_product_name()), true); $table->data[0][1] = html_print_input_text('traceroute_path', $traceroute_path, '', 40, 255, true); $table->data[1][0] = __("Ping path"); - $table->data[1][0] .= ui_print_help_tip(__('If it is empty, Pandora searchs the ping system.'), true); + $table->data[1][0] .= ui_print_help_tip(__('If empty, %s will search the ping system.', get_product_name()), true); $table->data[1][1] = html_print_input_text('ping_path', $ping_path, '', 40, 255, true); $table->data[2][0] = __("Nmap path"); - $table->data[2][0] .= ui_print_help_tip(__('If it is empty, Pandora searchs the nmap system.'), true); + $table->data[2][0] .= ui_print_help_tip(__('If empty, %s will search the nmap system.', get_product_name()), true); $table->data[2][1] = html_print_input_text('nmap_path', $nmap_path, '', 40, 255, true); $table->data[3][0] = __("Dig path"); - $table->data[3][0] .= ui_print_help_tip(__('If it is empty, Pandora searchs the dig system.'), true); + $table->data[3][0] .= ui_print_help_tip(__('If empty, %s will search the dig system', get_product_name()), true); $table->data[3][1] = html_print_input_text('dig_path', $dig_path, '', 40, 255, true); $table->data[4][0] = __("Snmpget path"); - $table->data[4][0] .= ui_print_help_tip(__('If it is empty, Pandora searchs the snmpget system.'), true); + $table->data[4][0] .= ui_print_help_tip(__('If empty, %s will search the snmpget system.', get_product_name()), true); $table->data[4][1] = html_print_input_text('snmpget_path', $snmpget_path, '', 40, 255, true); echo '
'; diff --git a/pandora_console/extensions/pandora_logs.php b/pandora_console/extensions/pandora_logs.php index 4241018a16..71cf847fa5 100644 --- a/pandora_console/extensions/pandora_logs.php +++ b/pandora_console/extensions/pandora_logs.php @@ -69,7 +69,7 @@ function pandoralogs_extension_main () { ui_print_page_header (__("System logfile viewer"), "images/extensions.png", false, "", true, "" ); - echo "

" . __('Use this tool to view your Pandora FMS logfiles directly on the console') . "

"; + echo "

" . __('Use this tool to view your %s logfiles directly on the console', get_product_name()) . "

"; echo "

" . __('You can choose the amount of information shown in general setup (Log size limit in system logs viewer extension), ' . $config['max_log_size'] * 1000 . 'B at the moment') . "

"; diff --git a/pandora_console/extensions/realtime_graphs.php b/pandora_console/extensions/realtime_graphs.php index 0f0fdf6990..e8cac701bb 100644 --- a/pandora_console/extensions/realtime_graphs.php +++ b/pandora_console/extensions/realtime_graphs.php @@ -63,12 +63,12 @@ function pandora_realtime_graphs () { $table->style['snmp_oid'] = 'font-weight: bold;'; $table->data = array (); - $graph_fields['cpu_load'] = __('Pandora Server CPU'); - $graph_fields['pending_packets'] = __('Pandora Server Pending packets'); - $graph_fields['disk_io_wait'] = __('Pandora Server Disk IO Wait'); - $graph_fields['apache_load'] = __('Pandora Server Apache load'); - $graph_fields['mysql_load'] = __('Pandora Server MySQL load'); - $graph_fields['server_load'] = __('Pandora Server load'); + $graph_fields['cpu_load'] = __('%s Server CPU', get_product_name()); + $graph_fields['pending_packets'] = __('Pending packages from %s Server', get_product_name()); + $graph_fields['disk_io_wait'] = __('%s Server Disk IO Wait', get_product_name()); + $graph_fields['apache_load'] = __('%s Server Apache load', get_product_name()); + $graph_fields['mysql_load'] = __('%s Server MySQL load', get_product_name()); + $graph_fields['server_load'] = __('%s Server load', get_product_name()); $graph_fields['snmp_interface'] = __('SNMP Interface throughput'); $graph = get_parameter('graph', 'cpu_load'); From b9504038fa64078a11dccb4f19944f355c28de71 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 9 May 2018 15:16:39 +0200 Subject: [PATCH 04/56] [Rebranding] First tasks --- .../general/firts_task/custom_graphs.php | 7 ++++--- pandora_console/general/firts_task/map_builder.php | 14 +++++++++----- .../general/firts_task/planned_downtime.php | 9 +++++---- pandora_console/general/firts_task/tags.php | 6 +++--- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/pandora_console/general/firts_task/custom_graphs.php b/pandora_console/general/firts_task/custom_graphs.php index 2d63aa4382..a951bb4966 100644 --- a/pandora_console/general/firts_task/custom_graphs.php +++ b/pandora_console/general/firts_task/custom_graphs.php @@ -29,9 +29,10 @@ ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no cu

-

+

diff --git a/pandora_console/general/firts_task/map_builder.php b/pandora_console/general/firts_task/map_builder.php index 26409ce803..e9f7451236 100755 --- a/pandora_console/general/firts_task/map_builder.php +++ b/pandora_console/general/firts_task/map_builder.php @@ -33,11 +33,15 @@ if ($vconsoles_write || $vconsoles_manage) {

-

+

diff --git a/pandora_console/general/firts_task/planned_downtime.php b/pandora_console/general/firts_task/planned_downtime.php index 052e12df9c..e8f38d35e9 100644 --- a/pandora_console/general/firts_task/planned_downtime.php +++ b/pandora_console/general/firts_task/planned_downtime.php @@ -26,10 +26,11 @@ ui_require_css_file ('firts_task');

-

+

diff --git a/pandora_console/general/firts_task/tags.php b/pandora_console/general/firts_task/tags.php index 037f7ef2e5..e0069e55c0 100755 --- a/pandora_console/general/firts_task/tags.php +++ b/pandora_console/general/firts_task/tags.php @@ -26,9 +26,9 @@ ui_require_css_file ('firts_task');

-

+

From 33abfa7f9d2945fe94c17fa1462f509106ae76a5 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 9 May 2018 18:50:45 +0200 Subject: [PATCH 05/56] [Rebranding] Other general source files. Removed unreached code oon general/logon_ok.php --- pandora_console/general/alert_enterprise.php | 26 +-- pandora_console/general/header.php | 8 +- pandora_console/general/login_help_dialog.php | 5 +- .../general/login_identification_wizard.php | 12 +- pandora_console/general/login_page.php | 29 +-- pandora_console/general/login_required.php | 4 +- pandora_console/general/logon_ok.php | 202 +----------------- pandora_console/general/noaccess.php | 9 +- pandora_console/general/pandora_help.php | 4 +- pandora_console/include/styles/pandora.css | 4 + 10 files changed, 59 insertions(+), 244 deletions(-) diff --git a/pandora_console/general/alert_enterprise.php b/pandora_console/general/alert_enterprise.php index 66d6e36b09..3b099fe677 100644 --- a/pandora_console/general/alert_enterprise.php +++ b/pandora_console/general/alert_enterprise.php @@ -93,15 +93,17 @@ switch ($tipo) { case "helpmodal": - echo __("This is the online help for Pandora FMS console. This help is -in best cases- just a brief contextual help, not intented to teach you how to use Pandora FMS. Official documentation of Pandora FMS is about 900 pages, and you probably don't need to read it entirely, but sure, you should download it and take a look.

-
Download the official documentation"); + echo __("This is the online help for %s console. This help is -in best cases- just a brief contextual help, not intented to teach you how to use %s. Official documentation of %s is about 900 pages, and you probably don't need to read it entirely, but sure, you should download it and take a look.

+ Download the official documentation", + get_product_name(), get_product_name(), get_product_name()); break; case "noaccess": - echo __('Access to this page is restricted to authorized users only, please contact system administrator if you need assistance.

- Please know that all attempts to access this page are recorded in security logs of Pandora System Database'); + echo __('Access to this page is restricted to authorized users only, please contact system administrator if you need assistance.

+ Please know that all attempts to access this page are recorded in security logs of %s System Database.', + get_product_name()); break; @@ -111,13 +113,13 @@ switch ($tipo) { echo '

' . - __('The Update Manager client is included on Pandora FMS. It helps system administrators update their Pandora FMS automatically, since the Update Manager retrieves new modules, new plugins and new features (even full migrations tools for future versions) automatically.') . + __('The Update Manager client is included on %s. It helps system administrators update their %s automatically, since the Update Manager retrieves new modules, new plugins and new features (even full migrations tools for future versions) automatically.', get_product_name(), get_product_name()) . '

' . '

' . __('OpenSource version updates are automated packages generated each week. These updates come WITHOUT ANY warranty or support. If your system is corrupted or a feature stops working properly, you will need to recover a backup by yourself.') . '

' . '

' . - __('The Enterprise version comes with a different update system, with fully tested, professionally-supported packages, and our support team is there to help you in case of problems or queries. Update Manager is another feature present in the Enterprise version and not included in the OpenSource version. There are lots of advanced business-oriented features contained in Pandora FMS Enterprise Edition. For more information visit pandorafms.com') . + __('The Enterprise version comes with a different update system, with fully tested, professionally-supported packages, and our support team is there to help you in case of problems or queries. Update Manager is another feature present in the Enterprise version and not included in the OpenSource version. There are lots of advanced business-oriented features contained in %s Enterprise Edition. For more information visit pandorafms.com', get_product_name()) . '

' ; @@ -125,13 +127,13 @@ switch ($tipo) { echo '

' . - __('The new Update Manager client is shipped with Pandora FMS It helps system administrators to update their Pandora FMS automatically, since the Update Manager does the task of getting new modules, new plugins and new features (even full migrations tools for future versions) automatically.') . + __('The new Update Manager client is included on %s. It helps system administrators update their %s automatically, since the Update Manager retrieves new modules, new plugins and new features (even full migrations tools for future versions) automatically.', get_product_name(), get_product_name()) . '

' . '

' . - __('Update Manager is one of the most advanced features of Pandora FMS Enterprise version, for more information visit http://pandorafms.com.') . + __('The Update Manager is one of the most advanced features on the %s Enterprise Edition. For more information visit http://pandorafms.com.', get_product_name()) . '

' . '

' . - __('Update Manager sends anonymous information about Pandora FMS usage (number of agents and modules running). To disable it, please remove the remote server address from the Update Manager plugin setup.') . + __('Update Manager sends anonymous information about %s usage (number of agents and modules running). To disable it, please remove the remote server address from the Update Manager plugin setup.', get_product_name()) . '

' ; } @@ -142,13 +144,13 @@ switch ($tipo) {



* Todos los logotipos pertenecen a marcas registradas"); break; case "massivemodal": - echo __("Do you want to consolidate all your system monitoring? Do you have many systems, making it difficult to manage them in a comprehensive manner? Would you like to deploy monitoring, alerts and even local plugins with a single click? Pandora FMS Enterprise Policies are exactly what you need; you'll save time, effort and annoyances. More information pandorafms.com"); + echo __("Do you want to consolidate all your system monitoring? Do you have many systems, making it difficult to manage them in a comprehensive manner? Would you like to deploy monitoring, alerts and even local plugins with a single click? %s Enterprise Policies are exactly what you need; you'll save time, effort and annoyances. More information pandorafms.com", get_product_name()); break; case "eventsmodal": - echo __("Pandora FMS Enterprise also features event correlation. Through correlation you can generate realtime alerts and / or new events based on logical rules. This allows you to automate troubleshooting. If you know the value of working with events, event correlation will take you to a new level."); + echo __("%s Enterprise also features event correlation. Through correlation you can generate realtime alerts and / or new events based on logical rules. This allows you to automate troubleshooting. If you know the value of working with events, event correlation will take you to a new level.", get_product_name()); break; case "reportingmodal": - echo __("Report generating on the Enterprise version is also more powerful: it has wizards, you can schedule emails in PDF to be sent according to the schedule you decide, and it has a template system to create personalized reports quickly for each of your customers. It will even allow your customers to generate their own reports from templates created by you. If reports are key to your business, Pandora FMS Enterprise version is for you."); + echo __("Report generating on the Enterprise version is also more powerful: it has wizards, you can schedule emails in PDF to be sent according to the schedule you decide, and it has a template system to create personalized reports quickly for each of your customers. It will even allow your customers to generate their own reports from templates created by you. If reports are key to your business, %s Enterprise version is for you.", get_product_name()); break; case "visualmodal": echo __("These options are only effective on the Enterprise version."); diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 2ac1e34df4..d08ab8ae16 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -31,14 +31,14 @@ config_check(); $custom_logo = 'images/custom_logo/' . $config['custom_logo']; if (!defined ('PANDORA_ENTERPRISE')) { - $logo_title = 'Pandora FMS Opensource'; + $logo_title = get_product_name() . ' Opensource'; $custom_logo = 'images/custom_logo/pandora_logo_head_3.png'; } else { if (file_exists(ENTERPRISE_DIR . '/' . $custom_logo)) { $custom_logo = ENTERPRISE_DIR . '/' . $custom_logo; } - $logo_title = 'Pandora FMS Enterprise'; + $logo_title = get_product_name() . ' Enterprise'; } echo html_print_image($custom_logo, true, @@ -166,8 +166,8 @@ config_check(); true, array("id" => 'clippy', "class" => 'clippy', - "alt" => __('Pandora FMS assistant'), - 'title' => __('Pandora FMS assistant'))) . + "alt" => __('%s assistant', get_product_name()), + 'title' => __('%s assistant', get_product_name()))) . ''; } diff --git a/pandora_console/general/login_help_dialog.php b/pandora_console/general/login_help_dialog.php index 631d9d5ce1..c3b05e8553 100644 --- a/pandora_console/general/login_help_dialog.php +++ b/pandora_console/general/login_help_dialog.php @@ -36,10 +36,11 @@ if (is_ajax()) { // Prints help dialog information echo '
'; + __('Welcome to %s', get_product_name()) . '" style="">'; echo '
'; - echo __('If this is your first time with Pandora FMS, we propose you a few links to learn more about Pandora FMS. Monitoring could be overwhelm, but take your time to learn how to use the power of Pandora FMS!'); + echo __("If this is your first time using %s, we suggest a few links that'll help you learn more about the software. Monitoring can be overwhelming, but take your time to learn how to harness the power of %s!", + get_product_name(), get_product_name()); echo '
'; echo '
'; diff --git a/pandora_console/general/login_identification_wizard.php b/pandora_console/general/login_identification_wizard.php index 1f5cabd740..57b5b63ba3 100644 --- a/pandora_console/general/login_identification_wizard.php +++ b/pandora_console/general/login_identification_wizard.php @@ -138,17 +138,17 @@ if ($email == 'admin@example.com') $email = ''; // Prints accept register license echo '
'; + __('The %s community wizard', get_product_name()) . '" style="">'; echo '
'; echo html_print_image ('images/pandora_circle_big.png', true); echo '
'; echo '
'; - echo __('Stay up to date with the Pandora FMS community') . "."; + echo __('Stay up to date with the %s community', get_product_name()) . "."; echo '
'; echo '
'; - echo '

' . __("When you subscribe to the Pandora FMS Update Manager service, you accept that we register your Pandora instance as an identifier on the database owned by Artica TS. This data will solely be used to provide you with information about Pandora FMS and will not be conceded to third parties. You'll be able to unregister from said database at any time from the Update Manager options") . '.

'; - echo '

' . __("In the same fashion, when subscribed to the newsletter you accept that your email will pass on to a database property of Artica TS. This data will solely be used to provide you with information about Pandora FMS and will not be conceded to third parties. You'll be able to unregister from said database at any time from the newsletter subscription options") . '.

'; + echo '

' . __("When you subscribe to the %s Update Manager service, you accept that we register your %s instance as an identifier on the database owned by Artica TS. This data will solely be used to provide you with information about %s and will not be conceded to third parties. You can unregister from said database at any time from the Update Manager options.", get_product_name(), get_product_name(), get_product_name()) . '

'; + echo '

' . __("In the same fashion, when subscribed to the newsletter you accept that your email will pass on to a database property of Artica TS. This data will solely be used to provide you with information about %s and will not be conceded to third parties. You can unregister from said database at any time from the newsletter subscription options.", get_product_name()) . '

'; echo '
'; echo '
'; @@ -161,7 +161,7 @@ echo '
'; html_print_checkbox('register', 1, false, false, false, 'cursor: \'pointer\''); - echo ' ' .__("Join the Pandora FMS community") . '!
'; + echo ' ' .__('Join the %s community!', get_product_name()) . '!
'; html_print_checkbox('newsletter', 1, false, false, false, 'cursor: \'pointer\''); echo ' ' .__("Subscribe to our newsletter") . ''; echo "
"; @@ -176,7 +176,7 @@ echo '
'; // Print yes or not dialog echo '
'; + __("%s instance identification wizard", get_product_name()) . '" style="">'; echo '
'; echo __("Do you want to continue without any registration") . "?"; echo '
'; diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index 7a99ae494c..f34d11e8d0 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -50,7 +50,7 @@ if (!isset($login_screen)) { switch ($login_screen) { case 'login': $logo_link = 'http://www.pandorafms.com'; - $logo_title = __('Go to Pandora FMS Website'); + $logo_title = __('Go to %s Website', get_product_name()); break; case 'logout': case 'double_auth': @@ -250,17 +250,17 @@ echo ''; echo '