added git version to footer

This commit is contained in:
dg9vh 2017-03-15 17:17:47 +00:00
parent 5e69177f73
commit 03eddb920d
2 changed files with 7 additions and 1 deletions

View file

@ -848,4 +848,10 @@ function decodeAlias($logLine) {
$tok7 = encode(dechex(hexdec(substr($logLine, 58, 2))/2));
return $tok1.$tok2.$tok3.$tok4.$tok5.$tok6.$tok7;
}
function getGitVersion(){
exec("git rev-parse HEAD", $output);
return 'GitID #<a href="https://github.com/dg9vh/MMDVMHost-Dashboard/commit/'.substr($output[0],0,7).'">'.substr($output[0],0,7).'</a>';
}
?>

View file

@ -1,3 +1,3 @@
<?php
define("VERSION", "20170314-2");
define("VERSION", "20170315-1 (".getGitVersion().")");
?>