better version-info of MMDVMHost since MMDVMHost-build 20160515.
This commit is contained in:
parent
4b0e7027bf
commit
b63154b7ed
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")";
|
if (substr($output[0],18,8) == ".ini fil") {
|
||||||
|
return getMMDVMHostFileVersion();
|
||||||
|
} else {
|
||||||
|
return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getMMDVMHostFileVersion() {
|
function getMMDVMHostFileVersion() {
|
||||||
|
|
Loading…
Reference in a new issue