summaryrefslogtreecommitdiff
path: root/pages/computers.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/computers.inc')
-rw-r--r--pages/computers.inc14
1 files changed, 12 insertions, 2 deletions
diff --git a/pages/computers.inc b/pages/computers.inc
index cc2c396..35f10cc 100644
--- a/pages/computers.inc
+++ b/pages/computers.inc
@@ -903,8 +903,18 @@ if (str_ends_with($computer["os"], "unknown")) {
<div style="display: flex; align-items: center;">
<div>
<b><?= $computer["host"] ?></b><br>
- <?= $computer["os"] ?><br>
- Computer · Owned by <?= $owner === "raindrops" ? "Raindrops System" : "Cloudburst System"; ?><br>
+ <?php
+
+ if (str_starts_with($computer["os"], "Google ")) {
+ echo(substr($computer["os"], 7));
+ } else if (str_starts_with($computer["os"], "Microsoft ")) {
+ echo(substr($computer["os"], 10));
+ } else {
+ echo($computer["os"]);
+ }
+
+ ?><br>
+ Computer · Owned by <?= $owner === "raindrops" ? "Raindrops" : "Cloudburst"; ?><br>
<?php if (timeAgo($computer["date"]) === "now"): ?>Online<?php else: ?>Last seen <?= timeAgo($computer["date"]) ?><?php endif; ?>
</div>
</div>