From 40ceb5d4e9df34da1e848afc2a2cfcb41d06c4c1 Mon Sep 17 00:00:00 2001 From: jakani24 Date: Sat, 27 Apr 2024 11:27:00 +0200 Subject: [PATCH] Update view_log.php --- .../system/secure_zone/php/view_log.php | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 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 8f37378..8476171 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 @@ -87,7 +87,26 @@ $conn->close(); is3D: true, }; - var chart = new google.visualization.PieChart(document.getElementById('piechart_3d')); + var chart = new google.visualization.PieChart(document.getElementById('log_spread')); + chart.draw(data, options); + } + google.charts.load("current", {packages:["corechart"]}); + google.charts.setOnLoadCallback(drawChart); + function drawChart() { + var data = google.visualization.arrayToDataTable([ + ['Entrys', 'Loglevel'], + ['Virus', ], + ['Error', ], + ['Info', ], + ['Warning', ], + ]); + + var options = { + title: 'Log Entrys', + is3D: true, + }; + + var chart = new google.visualization.PieChart(document.getElementById('machine_spread')); chart.draw(data, options); } @@ -187,7 +206,8 @@ $conn->close(); $stmt->execute(); $result = $stmt->get_result(); if($current_page==1){ - echo("
"); + echo("
"); + echo("
"); } // Display log entries echo '';