aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/cms-special/admin-v2/about
diff options
context:
space:
mode:
Diffstat (limited to 'Neutron-trunk/cms-special/admin-v2/about')
-rw-r--r--Neutron-trunk/cms-special/admin-v2/about/index.php98
1 files changed, 0 insertions, 98 deletions
diff --git a/Neutron-trunk/cms-special/admin-v2/about/index.php b/Neutron-trunk/cms-special/admin-v2/about/index.php
deleted file mode 100644
index c9791a0..0000000
--- a/Neutron-trunk/cms-special/admin-v2/about/index.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php require_once "../../../resources/private/relative.php"; getRelativeDetails("cms-special"); ?>
-<?php $pageConfig = [ "domName" => "Mise à jour et sécurité", "headerName" => "Mise à jour et sécurité" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/precontent.php"; ?>
- <?php
-
- $currentVersionP = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/version");
- $currentVersion = $currentVersionP;
-
- ?>
- <h3><?= $lang["admin-about"]["new"]["overview"] ?></h3>
- <ul><li>
- <?php
-
- echo("" . $lang['admin-about']['version']['prefix'] . " <b>" . $currentVersionP . "</b>");
- echo("</li>");
-
- $size = 0;
- getData($_SERVER['DOCUMENT_ROOT']);
- $sizestr = $size . " " . $lang["sizes"]["bytes"] . "";
- if ($size > 1024) {
- if ($size > 1048576) {
- if ($size > 1073741824) {
- $sizestr = round($size / 1073741824, 3) . " " . $lang["sizes"]["gibibytes"] . "";
- } else {
- $sizestr = round($size / 1048576, 3) . " " . $lang["sizes"]["mebibytes"] . "";
- }
- } else {
- $sizestr = round($size / 1024, 3) . " " . $lang["sizes"]["kibibytes"] . "";
- }
- } else {
- $sizestr = $size . " " . $lang["sizes"]["bytes"] . "";
- }
-
- if (!file_exists($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud")) {
- echo("<li>" . $lang["admin-about"]["diskspace"][0] . " <b>" . $sizestr . "</b> " . $lang["admin-about"]["diskspace"][1] . "</li>");
- } else {
- $sizep = $size;
- switch (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Tier")) {
- case "3":
- $size = 104857600;
- break;
-
- case "5":
- $size = 262144000;
- break;
-
- case "7":
- $size = 524288000;
- break;
- }
- $sizestr2 = $size . " " . $lang["sizes"]["bytes"] . "";
- if ($size > 1024) {
- if ($size > 1048576) {
- if ($size > 1073741824) {
- $sizestr2 = round($size / 1073741824, 3) . " " . $lang["sizes"]["gibibytes"] . "";
- } else {
- $sizestr2 = round($size / 1048576, 3) . " " . $lang["sizes"]["mebibytes"] . "";
- }
- } else {
- $sizestr2 = round($size / 1024, 3) . " " . $lang["sizes"]["kibibytes"] . "";
- }
- } else {
- $sizestr2 = $size . " " . $lang["sizes"]["bytes"] . "";
- }
-
- echo("<li>" . $lang["admin-about"]["diskspace"][0] . " <b>" . $sizestr . "/" . $sizestr2 . "</b> " . $lang["admin-about"]["diskspace"][1]);
- if (file_exists($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud")) {
- echo(" (" . round(($sizep / $size) * 100, 2) . "%)");
- }
- echo("</li>");
- }
-
- ?>
- </ul>
-
-<h3><?= $lang["admin-about"]["new"]["version"] ?></h3>
-
-<ul>
- <li><b>Neutron <?= trim(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/api/prettyver")) ?> « <?= trim(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/api/codename")) ?> »</b> (build <?= substr(trim(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/api/version")), 5) ?>)</li>
-
- <?php if (file_exists($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud")): ?><li><?= $lang["admin-about"]["new"]["types"][0] ?></li><?php else: ?><li><?= $lang["admin-about"]["new"]["types"][1] ?></li><?php endif; ?>
-
- <li><b><?= $lang["admin-about"]["new"]["renderer"][0] ?></b> <?= file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/cyclic_version") ?></li>
- <li><b><?= $lang["admin-about"]["new"]["renderer"][1] ?></b> <?= file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/jaw_version") ?></li>
-</ul>
-
-<h3><?= $lang["admin-about"]["new"]["system"] ?></h3>
-
-<ul>
- <?php if (isset($__electrode) && isset($__electrode_version) && isset($__electrode_node_version)): ?>
- <li><?= "Electrode " . $__electrode_version . "</li><li>NodeJS " . $__electrode_node_version ?></li>
- <?php endif; ?>
-
- <li>PHP <?= PHP_VERSION ?> (<?= PHP_SAPI ?>, <?= PHP_BINARY ?>)</li>
-
- <li><?= php_uname('s') . " " . php_uname('m') . " " . php_uname('r') ?></li>
-</ul>
-
-<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin-v2/\$resources/postcontent.php"; ?>