From cc2a438199b02c78e5b2e2b71de8e56f6617eae9 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 3 Jun 2023 14:10:08 +0200 Subject: Updated 15 files (automated) --- pages/api/disconnect.php | 7 +++++-- pages/byfront.inc | 4 ++-- pages/computers.inc | 14 +++++++++----- pages/docs.inc | 6 +++--- pages/sessions.inc | 6 ++++-- pages/toys.inc | 25 ------------------------- 6 files changed, 23 insertions(+), 39 deletions(-) (limited to 'pages') diff --git a/pages/api/disconnect.php b/pages/api/disconnect.php index 13363e6..c4cf0bd 100644 --- a/pages/api/disconnect.php +++ b/pages/api/disconnect.php @@ -7,10 +7,13 @@ if (!$isLoggedIn && !$isLowerLoggedIn) { die(); } -$list = array_filter([...scandir($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens"), ...scandir($_SERVER['DOCUMENT_ROOT'] . "/includes/lowertokens")], function ($token) use ($_PROFILE) { +$list = array_filter([...scandir($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens"), ...scandir($_SERVER['DOCUMENT_ROOT'] . "/includes/lowertokens")], function ($token) { + global $_PROFILE; + if ($token === "." || $token === "..") return false; + $session = file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens/" . $token) ? json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens/" . $token), true) : json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/lowertokens/" . $token), true); - return $token !== "." && $token !== ".." && isset($session["last"]) && isset($session["profile"]) && $session["profile"]["id"] === $_PROFILE["id"]; + return isset($session["last"]) && isset($session["profile"]) && ($session["profile"]["id"] ?? "") === ($_PROFILE["id"] ?? ""); }); foreach ($list as $token) { diff --git a/pages/byfront.inc b/pages/byfront.inc index 78c2319..f845378 100644 --- a/pages/byfront.inc +++ b/pages/byfront.inc @@ -111,7 +111,7 @@ $travelling = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includ } if ((isset($age) && $age > 0 && time() > 1677628800) || time() <= 1677628800): ?> -
time() - (86400 * 21)): ?>rgba(128, 54, 54, .1) time() - (86400 * 37)): ?>rgba(255, 227, 0, 0.17)rgba(255, 255, 255, .1); time() - (86400 * 21)): ?>rgba(255, 255, 255, .1) time() - (86400 * 30)): ?>rgba(255, 227, 0, 0.17)rgba(255,55,55,0.17);;margin-bottom:10px;padding:10px;border-radius:10px;display:grid;grid-template-columns: 1fr 2fr max-content;opacity: 0.75;background-color:rgba(255, 255, 255, .1) !important;"> +
time() - (86400 * 21)): ?>rgba(128, 54, 54, .1) time() - (86400 * 37)): ?>rgba(255, 227, 0, 0.17)rgba(255, 255, 255, .1); time() - (86400 * 21)): ?>rgba(255, 255, 255, .1) time() - (86400 * 30)): ?>rgba(255, 227, 0, 0.17)rgba(255,55,55,0.17);;margin-bottom:10px;padding:10px;border-radius:10px;display:grid;grid-template-columns: 1fr 2fr max-content;opacity: 0.75;background-color:rgba(255, 255, 255, .1) !important;"> "> " style="width:24px;">  @@ -124,7 +124,7 @@ $travelling = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includ Persecutor - + Punished diff --git a/pages/computers.inc b/pages/computers.inc index b711c32..643fe87 100644 --- a/pages/computers.inc +++ b/pages/computers.inc @@ -36,11 +36,11 @@ if (count($parts) === 2 || count($parts) === 3) { array_unshift($parts, null); } -if (str_ends_with($computer["os"], "unknown")) { +if (isset($computer["os"]) && str_ends_with($computer["os"], "unknown")) { $computer["os"] = trim(substr($computer["os"], 0, -7)); } -if (str_ends_with($computer["os"], "rolling")) { +if (isset($computer["os"]) && str_ends_with($computer["os"], "rolling")) { $computer["os"] = trim(substr($computer["os"], 0, -7)); } @@ -194,7 +194,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc'; Main processor: - ( GHz) + ( GHz) Processor threading: @@ -307,7 +307,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc'; Kernel version: - + Code page: @@ -601,7 +601,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc'; - % + % % @@ -896,6 +896,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc';

Devices

Click on a device to view information about it

+
+ Luna and the Cold Haze Devices software are deprecated. These applications are now deprecated and monitoring devices through Luna is not supported anymore. Basic support and servers will be shut down in August 2023. +
+