From 4b37f9e3dd33afb6cd9ea984912b967523219168 Mon Sep 17 00:00:00 2001 From: jakani24 Date: Sat, 27 Apr 2024 13:19:20 +0200 Subject: [PATCH] Update welcome.php --- src/server/cyberhex-code/system/secure_zone/php/welcome.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/cyberhex-code/system/secure_zone/php/welcome.php b/src/server/cyberhex-code/system/secure_zone/php/welcome.php index e4aa2ed..ef7e12a 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/welcome.php +++ b/src/server/cyberhex-code/system/secure_zone/php/welcome.php @@ -117,7 +117,7 @@ $filter_query = "&hash=$hash&path=$path&machine_id=$machine_id&action=$action&ma $total_pages = ceil($total_entries / $page_size); // Query log entries for the current page with filters - $sql = "SELECT * FROM machines,vir_notify WHERE machine_location LIKE ? AND path LIKE ? AND hash LIKE ? AND machine_id LIKE ? AND action LIKE ? AND machine_name=machine_id ORDER BY log.id DESC LIMIT ?, ?"; + $sql = "SELECT * FROM machines,vir_notify WHERE machine_location LIKE ? AND path LIKE ? AND hash LIKE ? AND machine_id LIKE ? AND action LIKE ? AND machine_name=machine_id ORDER BY vir_notify.id DESC LIMIT ?, ?"; $stmt = $conn->prepare($sql); $path = "%" . $path . "%"; $hash = "%" . $hash . "%";