Added a shortened commit hash along the version

The commit value is replaced when building the zip file
This commit is contained in:
Wruczek
2018-12-30 04:27:43 +01:00
parent e1e95639ad
commit d8fec04d81
4 changed files with 9 additions and 2 deletions

View File

@@ -117,7 +117,12 @@
<div class="card">
<div class="card-body">
<h4 class="card-title text-center">Welcome to TS-website <?= __TSWEBSITE_VERSION ?> Installer!</h4>
<h4 class="card-title text-center mb-0">Welcome to TS-website Installer!</h4>
<p class="card-text text-center text-muted font-italic mb-5">
Version <?= __TSWEBSITE_VERSION ?> (<?= __TSWEBSITE_COMMIT ?>)
</p>
<p class="card-text">This wizard will guide you through the installation process of TS-website.</p>
<p class="card-text text-danger" id="hidejs">Please enable Javascript before continuing!</p>
<p class="card-text">

View File

@@ -13,6 +13,7 @@ if(!empty($_COOKIE["tsw_allow_metrics"])) {
$data = [
"tswVersion" => __TSWEBSITE_VERSION,
"tswCommit" => __TSWEBSITE_COMMIT,
"phpVersion" => PHP_VERSION,
"os" => sprintf("%s %s %s %s", php_uname("s"), php_uname("r"), php_uname("v"), php_uname("m")), // no hostname
"webServer" => $_SERVER["SERVER_SOFTWARE"],