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

This commit is contained in:
dg9vh 2016-05-15 18:45:23 +00:00
parent 4b0e7027bf
commit b63154b7ed

View file

@ -4,7 +4,11 @@ function getMMDVMHostVersion() {
// returns creation-time of MMDVMHost as version-number // returns creation-time of MMDVMHost as version-number
$filename = MMDVMHOSTPATH . "MMDVMHost"; $filename = MMDVMHOSTPATH . "MMDVMHost";
exec($filename." -v 2>&1", $output); 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().")"; return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")";
}
} }
function getMMDVMHostFileVersion() { function getMMDVMHostFileVersion() {