better version-info of MMDVMHost since MMDVMHost-build 20160515.

This commit is contained in:
dg9vh 2016-05-15 18:56:27 +00:00
parent e4389db7ad
commit d0af39d669
2 changed files with 0 additions and 10 deletions

View file

@ -3,18 +3,12 @@
function getMMDVMHostVersion() {
// returns creation-time of MMDVMHost as version-number
$filename = MMDVMHOSTPATH . "MMDVMHost";
<<<<<<< HEAD
exec($filename . " 2>&1", $output);
$version = substr($output[1], 10, 4)."-".substr($output[1], 14, 2)."-".substr($output[1], 16, 2)." (compiled ".getMMDVMHostFileVersion().")";
return $version;
=======
exec($filename." -v 2>&1", $output);
if (substr($output[0],18,8) == ".ini fil") {
return getMMDVMHostFileVersion();
} else {
return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")";
}
>>>>>>> d49dbc67902a058b9de8b74c08002ee49f6366c7
}
function getMMDVMHostFileVersion() {

View file

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