From 0dd09276330f195988ed842693e9ffe3fa1d4050 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 18 Mar 2024 09:38:29 +0100 Subject: [PATCH] #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 + +