Test of version output for modified MMDVMHost by G0WFV

This commit is contained in:
dg9vh 2016-05-14 21:46:13 +00:00
parent 26b8b15d2b
commit 749d3cb5e7
2 changed files with 9 additions and 2 deletions

View file

@ -1,10 +1,17 @@
<?php
function getMMDVMHostVersion() {
// returns creation-time of MMDVMHost as version-number
$filename = MMDVMHOSTPATH . "MMDVMHost";
exec($filename." 2>&1", $output);
return substr($output[1],10,8)." (compiled ".getMMDVMHostFileVersion().")";
}
function getMMDVMHostFileVersion() {
// returns creation-time of MMDVMHost as version-number
$filename = MMDVMHOSTPATH . "MMDVMHost";
if (file_exists($filename)) {
return date("Y-m-d", filectime($filename));
return date("d M y", filectime($filename));
}
}

View file

@ -33,7 +33,7 @@ include "include/functions.php";
echo "Hotspot";
}
?>:</small> <?php echo getCallsign($mmdvmconfigs) ?></h1>
<h4>MMDVMHost v<?php echo getMMDVMHostVersion() ?> by G4KLX</h4>
<h4>MMDVMHost by G4KLX Version: <?php echo getMMDVMHostVersion() ?></h4>
</div>
<?php
// Here you can feel free to disable info-sections by commenting out with // before include