aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/cms-special/version/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'Neutron-trunk/cms-special/version/index.php')
-rw-r--r--Neutron-trunk/cms-special/version/index.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/Neutron-trunk/cms-special/version/index.php b/Neutron-trunk/cms-special/version/index.php
new file mode 100644
index 0000000..840de2d
--- /dev/null
+++ b/Neutron-trunk/cms-special/version/index.php
@@ -0,0 +1,36 @@
+<?php require_once "../../resources/private/relative.php"; getRelativeDetails("cms-special"); ?>
+<?php
+
+require $_SERVER['DOCUMENT_ROOT'] . "/api/lang/processor.php";
+require_once $_SERVER['DOCUMENT_ROOT'] . "/api/renderer/main.php";
+$buffer = ""; // Initialiser un nouveau tampon vide
+
+function buffer(string $value) {
+ global $buffer;
+ $buffer = $buffer . $value;
+}
+
+buffer("<p>" . $lang["version"]["workswith"] . "<b><a href=\"" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/public") . "\" target=\"_blank\">Neutron</a> " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/version") . " \"" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/codename") . "\"</b> (");
+if (isset($__electrode) && isset($__electrode_version) && isset($__electrode_node_version)) {
+ buffer("Electrode " . $__electrode_version . ", NodeJS " . $__electrode_node_version . ", ");
+}
+if (file_exists($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud") && is_file($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud")) {
+ if (isset($__electrode) && isset($__electrode_version) && isset($__electrode_node_version)) {
+ buffer("Electrode " . $__electrode_version . ", NodeJS " . $__electrode_node_version . ", Neutron Cloud)");
+ } else {
+ buffer("Neutron Cloud)");
+ }
+} else {
+ buffer("PHP " . PHP_VERSION . ", " . php_uname('s') . " " . php_uname('m') . " " . php_uname('r') . ")");
+}
+buffer($lang["version"]["renderer"][0] . "<b>" . $_RENDERER . $lang["version"]["renderer"][1] . $_VERSION . "</b>" . $lang["version"]["providedby"] . "<a href=\"https://minteck.ro.lt\" target=\"_blank\">Minteck</a>" . $lang["version"]["description"] . "</p>");
+buffer("<p>" . $lang["version"]["freesoftware"][0] . "<a href=\"https://www.gnu.org/licenses/gpl-3.0.html\" target=\"_blank\">" . $lang["version"]["freesoftware"][1] . "</a>" . $lang["version"]["freesoftware"][2] . "<a href=\"https://www.gnu.org/licenses/gpl-3.0.html\" target=\"_blank\">" . $lang["version"]["freesoftware"][3] . "</a>" . $lang["version"]["freesoftware"][4] . "</p>");
+buffer("<p>" . $lang["version"]["warranty"][0] . "<a href=\"https://www.gnu.org/licenses/gpl-3.0.html\" target=\"_blank\">" . $lang["version"]["warranty"][1] . "</a>" . $lang["version"]["warranty"][2] . "</p>");
+
+buffer("<h2>" . $lang["version"]["resources"] . "</h2>");
+buffer("<ul><li><a href=\"" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/bugs") . "/set_project.php?project_id=1\" target=\"_blank\">" . $lang["version"]["support"] . "</a></li>");
+buffer("<li><a href=\"https://minteck.ro.lt/creations/dev/neutron\" target=\"_blank\">" . $lang["version"]["minteck"] . "</a></li>");
+
+renderSpecial($buffer, $lang["version"]["title"]);
+
+?>