diff options
author | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-07-24 23:29:41 +0200 |
---|---|---|
committer | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-07-24 23:29:41 +0200 |
commit | d26d03c214d297dfe843290fd4dbe20dac01952c (patch) | |
tree | 22d0c8979f602b454c544aa7d1ea09ff0399b565 /_site/about/index.php | |
parent | bc333a889b48d4ddd1b9cf494ecb431f298ab35d (diff) | |
download | unchainedtech-d26d03c214d297dfe843290fd4dbe20dac01952c.tar.gz unchainedtech-d26d03c214d297dfe843290fd4dbe20dac01952c.tar.bz2 unchainedtech-d26d03c214d297dfe843290fd4dbe20dac01952c.zip |
Fix links
Diffstat (limited to '_site/about/index.php')
-rw-r--r-- | _site/about/index.php | 29 |
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> |