diff options
Diffstat (limited to 'admin/panes/quotas.php')
-rw-r--r-- | admin/panes/quotas.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/panes/quotas.php b/admin/panes/quotas.php index 91b6899..8102a0d 100644 --- a/admin/panes/quotas.php +++ b/admin/panes/quotas.php @@ -30,13 +30,13 @@ </style>
<div class="container" style="color:white;padding-top:15vh;padding-bottom:15vh;">
- <h2 style="text-align:center;">Neutron Cloud Quotas</h2>
+ <h2 style="text-align:center;"><?= l("Neutron Cloud Quotas", "Quotas de Neutron Cloud") ?></h2>
- <h4 style="text-align:center;">Websites that reached their limit can be locked down</h4>
+ <h4 style="text-align:center;"><?= l("Websites that reached their limit can be locked down", "Les sites Web qui ont atteint leur limite peuvent être bloqués") ?></h4>
<ul class="list-group" style="margin-top:20px;">
<?php $index=1;foreach (scandir("/mnt/minteckrolt-cloud") as $site): if (substr($site, 0, 1) === "~"): ?>
- <li class="list-group-item"><i><?= strip_tags(file_get_contents("/mnt/minteckrolt-cloud/" . $site . "/data/webcontent/sitename")) ?></i> (<a href="https://cloud.minteck.ro.lt/<?= $site ?>" target="_blank"><code><?= $site ?></code></a>, X<?= file_get_contents("/mnt/minteckrolt-cloud/" . $site . "/Tier") ?> Tier)<br><span class="text-muted" id="quota-<?= $index ?>">Calculating...</span><span style="float:right;"><a href="/admin/NeutronManage/?_=<?= $site ?>" target="_blank">Admin Panel</a></span><!--suppress JSUnresolvedVariable, JSUnresolvedFunction, JSUnfilteredForInLoop -->
+ <li class="list-group-item"><i><?= strip_tags(file_get_contents("/mnt/minteckrolt-cloud/" . $site . "/data/webcontent/sitename")) ?></i> (<a href="https://cloud.minteck.ro.lt/<?= $site ?>" target="_blank"><code><?= $site ?></code></a>, <?= l("X", "Tier X") ?><?= trim(file_get_contents("/mnt/minteckrolt-cloud/" . $site . "/Tier")) ?><?= l(" Tier", "") ?>)<br><span class="text-muted" id="quota-<?= $index ?>"><?= l("Calculating", "Calcul") ?>...</span><span style="float:right;"><a href="/admin/NeutronManage/?_=<?= $site ?>" target="_blank"><?= l("Admin Panel", "Espace d'administration") ?></a></span><!--suppress JSUnresolvedVariable, JSUnresolvedFunction, JSUnfilteredForInLoop -->
<script>
setTimeout(() => {
$.ajax("/admin/api/getQuota.php?_=<?= $site ?>", {
@@ -45,7 +45,7 @@ document.getElementById("quota-<?= $index ?>").innerHTML = data;
},
error: () => {
- document.getElementById("quota-<?= $index ?>").innerText = "Unable to calculate data usage";
+ document.getElementById("quota-<?= $index ?>").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") ?>";
}
});
}, 1000 * <?= $index ?>)
|