removed mui v4

This commit is contained in:
2024-04-05 17:14:36 +02:00
parent 964b98c22a
commit c6f9c8894c
31 changed files with 228 additions and 495 deletions

View File

@@ -71,6 +71,18 @@ class Stats extends Request {
return false;
}
$req = new \Core\API\Logs\Get($this->context, false);
$success = $req->execute([
"since" => (new \DateTime())->modify("-48 hours"),
"severity" => "error"
]);
if ($success) {
$errorCount = $req->getResult()["pagination"]["total"];
} else {
$errorCount = "Unknown";
}
$loadAvg = "Unknown";
if (function_exists("sys_getloadavg")) {
$loadAvg = sys_getloadavg();
@@ -86,6 +98,7 @@ class Stats extends Request {
"groupCount" => $groupCount,
"visitors" => $visitorStatistics,
"visitorsTotal" => $visitorCount,
"errorCount" => $errorCount,
"server" => [
"version" => WEBBASE_VERSION,
"server" => $_SERVER["SERVER_SOFTWARE"] ?? "Unknown",