From 750ed29ac953cc6feaedd4f60cb1e106e52e9ad7 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Thu, 24 May 2018 16:59:50 +0200 Subject: [PATCH] [Rebranding] Added a header to white backgrounds and make the favicon and the mobile console configurable --- pandora_console/extras/mr/16.sql | 1 + .../pandoradb_migrate_6.0_to_7.0.mysql.sql | 1 + pandora_console/general/pandora_help.php | 2 +- pandora_console/godmode/setup/license.php | 2 +- .../godmode/setup/setup_visuals.php | 86 +++++++++++++++++- .../images/custom_favicon/favicon_meta.ico | Bin 0 -> 1150 bytes .../images/custom_favicon/pandora.ico | Bin 0 -> 1150 bytes .../pandora_logo_head_white_bg.png | Bin 0 -> 4341 bytes .../pandora_logo_head_white_bg_2.png | Bin 0 -> 4198 bytes pandora_console/include/functions_config.php | 24 ++++- pandora_console/include/functions_ui.php | 52 +++++++++-- pandora_console/mobile/include/user.class.php | 8 +- .../operation/events/events_marquee.php | 2 +- .../operation/events/sound_events.php | 2 +- pandora_console/pandoradb_data.sql | 3 +- 15 files changed, 158 insertions(+), 25 deletions(-) create mode 100644 pandora_console/images/custom_favicon/favicon_meta.ico create mode 100644 pandora_console/images/custom_favicon/pandora.ico create mode 100755 pandora_console/images/custom_logo/pandora_logo_head_white_bg.png create mode 100644 pandora_console/images/custom_logo/pandora_logo_head_white_bg_2.png diff --git a/pandora_console/extras/mr/16.sql b/pandora_console/extras/mr/16.sql index 354d3377f2..65bbe43c7d 100644 --- a/pandora_console/extras/mr/16.sql +++ b/pandora_console/extras/mr/16.sql @@ -2,6 +2,7 @@ START TRANSACTION; INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_docs_logo', 'default_docs.png'); INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_support_logo', 'default_support.png'); +INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_logo_white_bg_preview', 'pandora_logo_head_white_bg.png'); UPDATE talert_actions SET name='Monitoring Event' WHERE name='Pandora FMS Event'; diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index 551225e14d..436081f2b1 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -1163,6 +1163,7 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES ('days_autodisable_deletion', '3 INSERT INTO `tconfig` (`token`, `value`) VALUES ('MR', 13); INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_docs_logo', 'default_docs.png'); INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_support_logo', 'default_support.png'); +INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_logo_white_bg_preview', 'pandora_logo_head_white_bg.png'); UPDATE tconfig SET value = 'https://licensing.artica.es/pandoraupdate7/server.php' WHERE token='url_update_manager'; DELETE FROM `tconfig` WHERE `token` = 'current_package_enterprise'; INSERT INTO `tconfig` (`token`, `value`) VALUES ('current_package_enterprise', '720'); diff --git a/pandora_console/general/pandora_help.php b/pandora_console/general/pandora_help.php index fa1696370c..72ed4ec827 100644 --- a/pandora_console/general/pandora_help.php +++ b/pandora_console/general/pandora_help.php @@ -61,7 +61,7 @@ foreach ($files as $file) { } } -$logo = ui_get_custom_header_logo(); +$logo = ui_get_custom_header_logo(true); if (! $id || ! file_exists ($help_file)) { echo '
'; diff --git a/pandora_console/godmode/setup/license.php b/pandora_console/godmode/setup/license.php index ecff0c27ce..a772c0e015 100644 --- a/pandora_console/godmode/setup/license.php +++ b/pandora_console/godmode/setup/license.php @@ -103,7 +103,7 @@ if (enterprise_installed()) { echo ''; echo '