diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-24 15:38:16 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-24 15:38:16 +0200 |
commit | 529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105 (patch) | |
tree | 8a50c30271b9b328cde0d907b1441f2dabdc341b /Neutron-trunk/cms-special/version | |
parent | 15e4724761c50b30803df1811a525c85058f70bf (diff) | |
download | electrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.tar.gz electrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.tar.bz2 electrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.zip |
Update
Diffstat (limited to 'Neutron-trunk/cms-special/version')
-rw-r--r-- | Neutron-trunk/cms-special/version/index.php | 36 |
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"]); + +?> |