Test of version output for modified MMDVMHost by G0WFV
This commit is contained in:
parent
26b8b15d2b
commit
749d3cb5e7
2 changed files with 9 additions and 2 deletions
|
@ -1,10 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
function getMMDVMHostVersion() {
|
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
|
// returns creation-time of MMDVMHost as version-number
|
||||||
$filename = MMDVMHOSTPATH . "MMDVMHost";
|
$filename = MMDVMHOSTPATH . "MMDVMHost";
|
||||||
if (file_exists($filename)) {
|
if (file_exists($filename)) {
|
||||||
return date("Y-m-d", filectime($filename));
|
return date("d M y", filectime($filename));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ include "include/functions.php";
|
||||||
echo "Hotspot";
|
echo "Hotspot";
|
||||||
}
|
}
|
||||||
?>:</small> <?php echo getCallsign($mmdvmconfigs) ?></h1>
|
?>:</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>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
// Here you can feel free to disable info-sections by commenting out with // before include
|
// Here you can feel free to disable info-sections by commenting out with // before include
|
||||||
|
|
Loading…
Reference in a new issue