From 5c1b712e5d50165c0ad91ca03bd778c471afbbf5 Mon Sep 17 00:00:00 2001 From: jakani24 Date: Sun, 11 Feb 2024 20:06:08 +0100 Subject: [PATCH] Update client_settings.php --- .../secure_zone/php/client_settings.php | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/src/server/cyberhex-code/system/secure_zone/php/client_settings.php b/src/server/cyberhex-code/system/secure_zone/php/client_settings.php index fa7e935..b5fec7f 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/client_settings.php +++ b/src/server/cyberhex-code/system/secure_zone/php/client_settings.php @@ -264,6 +264,17 @@ function load_settings(){ var task=time+';'+action+';'+argument+';'+name; await fetch('client_settings.php?update='+db+'&value='+task+'&id='+id); } + //decide which div should be shown: + // Get the URL parameters + const queryString = window.location.search; + const urlParams = new URLSearchParams(queryString); + + // Get the value of the "show" parameter + const show_div = getElementById(urlParams.get('show')); + const nav_tab = getElementById(urlParams.get('show')+"_tab"); + show_div.style.display="block"; + +
@@ -274,19 +285,17 @@ function load_settings(){
+ + + + +

General

What should be done, if the scanner finds a virus?