aboutsummaryrefslogtreecommitdiff
path: root/_site/about
diff options
context:
space:
mode:
Diffstat (limited to '_site/about')
-rw-r--r--_site/about/index.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/_site/about/index.php b/_site/about/index.php
index ed49405..8d91aa9 100644
--- a/_site/about/index.php
+++ b/_site/about/index.php
@@ -9,6 +9,35 @@
<p>UnchainedTech is a tech-centric blog written by two people on their free time. Whether it is the new Windows update or the latest iPhone, the UnchainedTech writers will always find a topic to talk about.</p>
+ <p><b>Version information:</b>
+ <ul>
+ <li>UnchainedTech Software version: <?= trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/../version.txt")) ?></li>
+ <li>PHP version: <?= PHP_VERSION ?></li>
+ <li><?= php_uname('s') ?> version: <?= php_uname('r') ?> <?= php_uname('v') ?> (<?= php_uname('m') ?>)</li>
+ <li>Git version: <?php exec("git --version", $res);$p = explode(" ", $res[0]);array_shift($p);array_shift($p);echo(implode(" ", $p)) ?></li>
+ <li><?php
+
+ $soft = $_SERVER['SERVER_SOFTWARE'];
+
+ if (strpos(strtolower($soft), "apache") !== false) {
+ echo("Apache HTTP Server");
+ } else {
+ echo("nginx");
+ }
+
+ ?> version: <?php
+
+ $soft = $_SERVER['SERVER_SOFTWARE'];
+
+ if (strpos(strtolower($soft), "apache") !== false) {
+ exec("apache2 -v", $res2);$p = explode(" ", $res2[0]);array_shift($p);array_shift($p);$p2 = explode("/", implode(" ", $p));array_shift($p2);echo(implode(" ", $p2));
+ } else {
+ exec("nginx -v", $res2);$p = explode(" ", $res2[0]);array_shift($p);array_shift($p);$p2 = explode("/", implode(" ", $p));array_shift($p2);echo(implode(" ", $p2));
+ }
+
+ ?></li>
+ </ul></p>
+
<p>UnchainedTech is proudly powered by open-source software! Namely:
<ul>
<li><a href="https://github.com/erusev/parsedown" target="_blank">Parsedown</a></li>