From 0dd09276330f195988ed842693e9ffe3fa1d4050 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 18 Mar 2024 09:38:29 +0100 Subject: [PATCH 1/3] #13061 dont show more lts message checkbox --- .../update_manager/modal_lts_update.php | 41 ++++++++++++++++++- .../update_manager/update_manager.setup.php | 4 ++ pandora_console/include/functions_config.php | 4 ++ pandora_console/include/styles/pandora.css | 12 ++++++ 4 files changed, 59 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/update_manager/modal_lts_update.php b/pandora_console/godmode/update_manager/modal_lts_update.php index fc744b3b57..7721783920 100644 --- a/pandora_console/godmode/update_manager/modal_lts_update.php +++ b/pandora_console/godmode/update_manager/modal_lts_update.php @@ -40,6 +40,17 @@ if (! check_acl($config['id_user'], 0, 'PM') && ! is_user_admin($config['id_user return; } +if (is_ajax()) { + $stopShowingModal = get_parameter('stopShowingModal', 0); + if ($stopShowingModal === '1') { + config_update_value('stop_lts_modal', 1); + } else { + config_update_value('stop_lts_modal', 0); + } + + return; +} + require_once $config['homedir'].'/vendor/autoload.php'; $php_version = phpversion(); @@ -83,7 +94,9 @@ if ($php_version_array[0] < 7) { - + \ No newline at end of file + + Date: Mon, 25 Mar 2024 08:32:56 +0100 Subject: [PATCH 2/3] #13061 toekn lts message no show to individual users --- pandora_console/extras/mr/69.sql | 6 ++++++ .../godmode/update_manager/modal_lts_update.php | 11 +++++++---- .../godmode/update_manager/update_manager.setup.php | 6 +++++- pandora_console/include/functions_config.php | 4 ---- pandora_console/pandoradb.sql | 2 ++ 5 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 pandora_console/extras/mr/69.sql diff --git a/pandora_console/extras/mr/69.sql b/pandora_console/extras/mr/69.sql new file mode 100644 index 0000000000..c7f619f3a1 --- /dev/null +++ b/pandora_console/extras/mr/69.sql @@ -0,0 +1,6 @@ +START TRANSACTION; + +ALTER TABLE `tusuario` +ADD COLUMN `stop_lts_modal` TINYINT NOT NULL DEFAULT 0 AFTER `session_max_time_expire`; + +COMMIT; \ No newline at end of file diff --git a/pandora_console/godmode/update_manager/modal_lts_update.php b/pandora_console/godmode/update_manager/modal_lts_update.php index 7721783920..349e378b40 100644 --- a/pandora_console/godmode/update_manager/modal_lts_update.php +++ b/pandora_console/godmode/update_manager/modal_lts_update.php @@ -43,9 +43,11 @@ if (! check_acl($config['id_user'], 0, 'PM') && ! is_user_admin($config['id_user if (is_ajax()) { $stopShowingModal = get_parameter('stopShowingModal', 0); if ($stopShowingModal === '1') { - config_update_value('stop_lts_modal', 1); - } else { - config_update_value('stop_lts_modal', 0); + db_process_sql_update( + 'tusuario', + ['stop_lts_modal' => '1'], + ['id_user' => $config['id_user']], + ); } return; @@ -95,7 +97,8 @@ if ($php_version_array[0] < 7) {