OpenXE/version.php

21 lines
442 B
PHP
Raw Permalink Normal View History

<?php
$version="OSS";
2024-08-29 14:19:19 +02:00
$version_revision="1.12";
2024-06-02 13:27:51 +02:00
$gitinfo = file_get_contents("../gitinfo.json");
if (!empty($gitinfo)) {
$gitinfo = json_decode($gitinfo);
2024-11-19 16:44:03 +01:00
if ($gitinfo->branch != 'master' && !empty($gitinfo->branch)) {
2024-06-02 13:27:51 +02:00
$version_revision .= " (".substr($gitinfo->hash,0,8)." - ".$gitinfo->branch.")";
}
else {
$version_revision .= " (".substr($gitinfo->hash,0,8).")";
}
} else {
$version_revision .= " (?)";
}
?>