aboutsummaryrefslogtreecommitdiff
path: root/admin/panes/home.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-01-01 10:37:28 +0100
committerMinteck <contact@minteck.org>2022-01-01 10:37:28 +0100
commitef055e79855cf3be1ad5e1aa5f9ebad480062384 (patch)
treeff074b29a7a87c3ccfc3b10741bbe30cb28e103e /admin/panes/home.php
parente3a79df6428799024eac64e9cffbb062317aeb95 (diff)
downloadmain-trunk.tar.gz
main-trunk.tar.bz2
main-trunk.zip
Bye furriesHEADtrunk
Diffstat (limited to 'admin/panes/home.php')
-rw-r--r--admin/panes/home.php116
1 files changed, 0 insertions, 116 deletions
diff --git a/admin/panes/home.php b/admin/panes/home.php
deleted file mode 100644
index f31dc72..0000000
--- a/admin/panes/home.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.php";/** @var array $_DATA */ ?>
-
-<style>
- ::-webkit-scrollbar {
- width: 5px;
- }
-
- ::-webkit-scrollbar-track {
- border-radius: 9999px;
- background: transparent;
- }
-
- ::-webkit-scrollbar-thumb {
- border-radius: 9999px;
- background-color: rgba(136, 136, 136, 0.5);
- transition: background 200ms;
- }
-
- ::-webkit-scrollbar-thumb:hover {
- background-color: rgba(85, 85, 85, 0.75);
- }
-
- ::-webkit-scrollbar-thumb:active {
- background-color: #222;
- }
-
- .list-group-item {
- background: #34373c;
- }
-</style>
-
-<div class="container" style="color:white;padding-top:15vh;padding-bottom:15vh;">
- <h2 style="text-align:center;"><?= l("Welcome back", "Vous revoilà") ?> <?= $_DATA["name"] ?><?= l("", " ") ?>!</h2>
- <ul class="list-group" style="margin-top:30px;">
- <li class="list-group-item">
- <span id="temperature"><?= l("Server running at", "Serveur fonctionnant à") ?> <b>--.-°C</b>, n/a</span> <a href="#" onclick="window.parent.activity('activity-version', '/admin/panes/version.php', window.parent.document.getElementById('activity-version'));" style="float:right;"><?= l("Manage", "Gérer") ?>...</a></li><li class="list-group-item"><b><?php
-
- $uca = scandir("/mnt/blogchain/_posts");
- $uct = [];
-
- foreach ($uca as $art) {
- if (is_file("/mnt/blogchain/_posts/" . $art) && substr($art, 0, 1) !== "." && substr($art, 0, 1) !== "_") {
- $uct[] = $art;
- }
- }
-
- echo(count($uct));
-
- ?></b> <?= l("UnchainedTech article·s", "article·s sur UnchainedTech") ?>, <?php
-
- $uca = scandir("/mnt/blogchain/_posts/_drafts");
- $uct2 = [];
-
- foreach ($uca as $art) {
- if (is_file("/mnt/blogchain/_posts/_drafts/" . $art) && substr($art, 0, 1) !== "." && substr($art, 0, 1) !== "_") {
- $uct2[] = $art;
- }
- }
-
- echo(count($uct2));
-
- ?> <?= l("draft·s", "brouillon·s") ?> <a onclick="window.parent.activity('activity-unchained', '/admin/panes/unchained.php', window.parent.document.getElementById('activity-unchained'));" href="#" style="float:right;"><?= l("Manage", "Gérer") ?>...</a></li>
- <li class="list-group-item"><b><?php
-
- $uca = scandir("/mnt/minteckrolt-cloud");
- $uct3 = [];
-
- foreach ($uca as $art) {
- if (is_dir("/mnt/minteckrolt-cloud/" . $art) && substr($art, 0, 1) === "~") {
- $uct3[] = $art;
- }
- }
-
- echo(count($uct3));
-
- ?></b> <?= l("Neutron Cloud website·s", "site·s Neutron Cloud") ?> <a onclick="window.parent.activity('activity-quotas', '/admin/panes/quotas.php', window.parent.document.getElementById('activity-quotas'));" href="#" style="float:right;"><?= l("Manage", "Gérer") ?>...</a></li>
- <li class="list-group-item"><b><?php
-
- $uca = scandir("/mnt/kartik/online/private/stats");
- $uct4 = [];
-
- foreach ($uca as $art) {
- if (is_file("/mnt/kartik/online/private/stats/" . $art)) {
- $uct4[] = $art;
- }
- }
-
- echo(count($uct4));
-
- ?></b> <?= l("Kartik Online player·s", "joueurs·s Kartik Online") ?> <a onclick="window.parent.activity('activity-kartik', '/admin/panes/kartik.php', window.parent.document.getElementById('activity-kartik'));" href="#" style="float:right;"><?= l("Manage", "Gérer") ?>...</a></li>
- <li class="list-group-item"><?= l("Using", "Utilisation de") ?> <b><?php
-
- exec("df -h -x tmpfs -x squashfs -x devtmpfs --total -P", $outdisk);
- $outn = explode(" ", preg_replace('/\s+/', ' ', $outdisk[count($outdisk) - 1]));
- echo($outn[2] . "/" . $outn[1]);
-
- ?></b> <?= l("on all disks", "sur tous les disques") ?>, <b><?php
-
- echo($outn[3]);
-
- ?></b> <?= l("free", "de libre") ?> <a onclick="window.parent.activity('activity-disk', '/admin/panes/disk.php', window.parent.document.getElementById('activity-disk'));" href="#" style="float:right;"><?= l("Manage", "Gérer") ?>...</a></li>
- </ul>
- <!--suppress JSUnresolvedVariable, JSUnresolvedFunction -->
- <script>
- setInterval(() => {
- $.ajax("/admin/api/serverTemp.php", {
- success: (data) => {
- document.getElementById("temperature").innerHTML = data;
- }
- });
- }, 500)
- </script>
-</div>
-<script src="https://bm.jae.su/web/libs/FtechWebring.client.js" async></script>
-
-<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/footer.php"; ?> \ No newline at end of file