diff --git a/include/functions.php b/include/functions.php index 5ccfdd0..e1fac35 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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 #'.substr($output[0],0,7).''; +} ?> diff --git a/version.php b/version.php index 3a6fdc4..fc41b4a 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@