mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-26 06:30:29 +01:00
21 lines
416 B
PHP
Executable File
21 lines
416 B
PHP
Executable File
<?php
|
|
|
|
$version="OSS";
|
|
$version_revision="1.11";
|
|
$gitinfo = file_get_contents("../gitinfo.json");
|
|
if (!empty($gitinfo)) {
|
|
$gitinfo = json_decode($gitinfo);
|
|
|
|
if ($gitinfo->branch != 'master') {
|
|
$version_revision .= " (".substr($gitinfo->hash,0,8)." - ".$gitinfo->branch.")";
|
|
}
|
|
else {
|
|
$version_revision .= " (".substr($gitinfo->hash,0,8).")";
|
|
}
|
|
|
|
} else {
|
|
$version_revision .= " (?)";
|
|
}
|
|
|
|
?>
|