From 3c1dc868aa9f3fa03b3dd33f491a16600e0fdd8d Mon Sep 17 00:00:00 2001 From: Brian Read Date: Mon, 15 Jul 2024 16:15:39 +0100 Subject: [PATCH] Add detailed level of drill down into logs --- root/opt/mailstats/html/ShowDetailedLogs.php | 29 ++++++++++++++++++++ root/opt/mailstats/html/showSummaryLogs.php | 8 +++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 root/opt/mailstats/html/ShowDetailedLogs.php diff --git a/root/opt/mailstats/html/ShowDetailedLogs.php b/root/opt/mailstats/html/ShowDetailedLogs.php new file mode 100644 index 0000000..75d6e0a --- /dev/null +++ b/root/opt/mailstats/html/ShowDetailedLogs.php @@ -0,0 +1,29 @@ + diff --git a/root/opt/mailstats/html/showSummaryLogs.php b/root/opt/mailstats/html/showSummaryLogs.php index 70e847a..9be82d0 100644 --- a/root/opt/mailstats/html/showSummaryLogs.php +++ b/root/opt/mailstats/html/showSummaryLogs.php @@ -75,6 +75,7 @@ function generateLogDataTable($logData) { $values = array_values($mergedData); $output = ''; + #$output = '
'; // Divide keys and values into sets of 6 $chunks = array_chunk($keys, 6); @@ -90,7 +91,12 @@ function generateLogDataTable($logData) { } $output .= ''; foreach ($chunk as $i => $key) { - $output .= ''; + $val = htmlspecialchars($values[$chunkIndex * 6+ $i]); + if ($key == 'id'){ + $output .= '"; + } else { + $output .= ''; + } } $output .= ''; }
' . htmlspecialchars($values[$chunkIndex * 6+ $i]) . '' . "".$val."' . $val . '