aboutsummaryrefslogtreecommitdiff
path: root/admin/panes/version.php
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-08 22:31:51 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-08 22:31:51 +0200
commit94c57fa247ba107fce8fc1d1fc355191229dbddc (patch)
tree865048aa574ef63ad322ed8e5057eb7629e03c29 /admin/panes/version.php
parente255736e3f2a95ee82cadc01b0c70749ab946226 (diff)
downloadmain-94c57fa247ba107fce8fc1d1fc355191229dbddc.tar.gz
main-94c57fa247ba107fce8fc1d1fc355191229dbddc.tar.bz2
main-94c57fa247ba107fce8fc1d1fc355191229dbddc.zip
Permissions system
Diffstat (limited to 'admin/panes/version.php')
-rw-r--r--admin/panes/version.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/admin/panes/version.php b/admin/panes/version.php
index 10f1274..8642178 100644
--- a/admin/panes/version.php
+++ b/admin/panes/version.php
@@ -30,7 +30,7 @@
</style>
<div class="container" style="color:white;padding-top:15vh;padding-bottom:15vh;">
- <h2 style="text-align:center;">This server is running <?= php_uname('s') ?> version</h2>
+ <h2 style="text-align:center;"><?= l("This server is running", "Ce serveur exécute") ?> <?= php_uname('s') ?> version</h2>
<h4 style="text-align:center;"><?= php_uname('r') . " " . php_uname('v') ?></h4>
@@ -38,7 +38,7 @@
<li class="list-group-item">PHP <?= PHP_VERSION ?></li>
<li class="list-group-item">Minteck's Space <?= trim(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/version.txt")) ?></li>
<li class="list-group-item">UnchainedTech <?= trim(file_get_contents("/mnt/blogchain/version.txt")) ?></li>
- <li class="list-group-item">Neutron Cloud <?= trim(file_get_contents("/mnt/minteckrolt-cloud/@BASE/source/api/version")) ?></li>
+ <li class="list-group-item">Neutron Cloud <?= trim(file_get_contents("/mnt/minteckrolt-cloud/@BASE/source/api/version")) ?> (<?= trim(file_get_contents("/mnt/minteckrolt-cloud/@BASE/source/api/codename")) ?>)</li>
<li class="list-group-item">Neutron Copper <?= trim(file_get_contents("/mnt/minteckrolt-cloud/@BASE/source/api/cyclic_version")) ?></li>
<li class="list-group-item">Neutron Titanium <?= trim(file_get_contents("/mnt/minteckrolt-cloud/@BASE/source/api/jaw_version")) ?></li>
<li class="list-group-item">
@@ -64,7 +64,7 @@
$soft = $_SERVER['SERVER_SOFTWARE'];
if (strpos(strtolower($soft), "apache") !== false) {
- echo("Apache HTTP Server");
+ echo(l("Apache HTTP Server", "Serveur HTTP Apache"));
} else {
echo("nginx");
}
@@ -83,13 +83,13 @@
</ul>
<ul class="list-group" style="margin-top:20px;">
- <li id="checking" class="list-group-item">Checking for updates...</li>
+ <li id="checking" class="list-group-item"><?= l("Checking for updates", "Recherche de mises à jour") ?>...</li>
<li id="checking2" class="list-group-item" style="display:none;"></li>
<li id="found" class="list-group-item" style="display:none;">
- <b id="updates-count">0</b> package·s have updates available
+ <b id="updates-count">0</b> <?= l("package·s have updates available", "paquet·s peuvent être mis à jour") ?>
<details>
- <summary>View details</summary>
+ <summary><?= l("View details", "Voir les détails") ?></summary>
<ul class="list-group" id="updates-list"></ul>
</details>
</li>
@@ -98,21 +98,21 @@
<script>
$.ajax("/admin/api/refreshUpdates.php", {
success: (data) => {
- document.getElementById("checking").innerText = "Checking for Ubuntu upgrades...";
+ document.getElementById("checking").innerText = "<?= l("Checking for Ubuntu upgrades", "Recherche de mises à niveau d'Ubuntu") ?>...";
$.ajax("/admin/api/getUbuntuUpgrades.php", {
success: (data) => {
document.getElementById("checking").innerHTML = data;
document.getElementById("checking2").style.display = "";
- document.getElementById("checking2").innerText = "Reading package lists...";
+ document.getElementById("checking2").innerText = "<?= l("Reading package lists", "Lecture des listes de paquets") ?>...";
$.ajax("/admin/api/getUpdates.php", {
success: (data) => {
- document.getElementById("checking2").innerText = "Please wait...";
+ document.getElementById("checking2").innerText = "<?= l("Please wait", "Patientez") ?>...";
document.getElementById("updates-count").innerText = data.count;
dom = "";
for (let index in data.packages) {
item = data.packages[index];
- dom += `<li class="list-group-item"><b>${item.name}</b> (<span style="color: orange;">${item.version.local}</span> → <span style="color: green;">${item.version.remote}</span>)<br>Provided by: <code>${item.repos}</code>, target architecture: <code>${item.architecture}</code></li>`
+ dom += `<li class="list-group-item"><b>${item.name}</b> (<span style="color: orange;">${item.version.local}</span> → <span style="color: green;">${item.version.remote}</span>)<br><?= l("Provided by", "Fourni par ") ?>: <code>${item.repos}</code>, <?= l("target architecture", "architecture cible ") ?>: <code>${item.architecture}</code></li>`
}
document.getElementById("updates-list").innerHTML = dom;
@@ -121,17 +121,17 @@
document.getElementById("found").style.display = "";
},
error: () => {
- document.getElementById("checking2").innerText = "An error occurred while loading this content";
+ document.getElementById("checking2").innerText = "<?= l("An error occurred while loading this content, perhaps you don't have permission to access it", "Une erreur s'est produite lors du chargement de ce contenu, peut-être que vous n'avez pas la permission d'y accéder") ?>";
}
});
},
error: () => {
- document.getElementById("checking").innerText = "An error occurred while loading this content";
+ document.getElementById("checking").innerText = "<?= l("An error occurred while loading this content, perhaps you don't have permission to access it", "Une erreur s'est produite lors du chargement de ce contenu, peut-être que vous n'avez pas la permission d'y accéder") ?>";
}
});
},
error: () => {
- document.getElementById("checking").innerText = "An error occurred while loading this content";
+ document.getElementById("checking").innerText = "<?= l("An error occurred while loading this content, perhaps you don't have permission to access it", "Une erreur s'est produite lors du chargement de ce contenu, peut-être que vous n'avez pas la permission d'y accéder") ?>";
}
});
</script>