From c921a18acb9bfb3293c2f3f2cebf1964400a7dbc Mon Sep 17 00:00:00 2001 From: jakani24 Date: Sun, 21 Jan 2024 17:02:53 +0100 Subject: [PATCH] Update view_log.php --- .../cyberhex-code/system/secure_zone/php/view_log.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/server/cyberhex-code/system/secure_zone/php/view_log.php b/src/server/cyberhex-code/system/secure_zone/php/view_log.php index 4980e9e..2d1c650 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/view_log.php +++ b/src/server/cyberhex-code/system/secure_zone/php/view_log.php @@ -142,16 +142,19 @@ if($perms[2]!=="1"){ $machine_id=$row["machine_id"]; $show=true; if(isset($_GET["loglevel"]) && $_GET["loglevel"]!==""){ - if(!strpos($loglevel,$_GET["loglevel"])){ + if(!stripos($loglevel,$_GET["loglevel"])){ $show=false; + echo("1"); } }if(isset($_GET["logtext"]) && $_GET["logtext"]!==""){ - if(!strpos($logtext,$_GET["logtext"])){ + if(!stripos($logtext,$_GET["logtext"])){ $show=false; + echo("2"); } }if(isset($_GET["machine_id"]) && $_GET["machine_id"]!==""){ - if(!strpos($machine_id,$_GET["machine_id"])){ + if(!stripos($machine_id,$_GET["machine_id"])){ $show=false; + echo("3"); } } if($show==true){