summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-01 09:09:18 +0200
committerRaindropsSys <contact@minteck.org>2023-04-01 09:09:18 +0200
commitf559308a1b42a9036135d764374a8c007b7d70a9 (patch)
tree02a9c6594a25f9a64bb7d07cf85fcb35dc529ad3 /pages
parent05af3950c40e5724f1cd9ed662528c0832fb1297 (diff)
downloadpluralconnect-f559308a1b42a9036135d764374a8c007b7d70a9.tar.gz
pluralconnect-f559308a1b42a9036135d764374a8c007b7d70a9.tar.bz2
pluralconnect-f559308a1b42a9036135d764374a8c007b7d70a9.zip
Updated pages/computers.inc and added LICENSE (automated)
Diffstat (limited to 'pages')
-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>