diff --git a/include/functions.php b/include/functions.php index 2e76e7c..4e6d75b 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3,8 +3,8 @@ 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().")"; + exec($filename." -v 2>&1", $output); + return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")"; } function getMMDVMHostFileVersion() { @@ -400,4 +400,4 @@ function getActualReflector($logLines, $mode) { $mmdvmconfigs = getMMDVMConfig(); $logLines = getLog(); $lastHeard = getLastHeard($logLines); -?> \ No newline at end of file +?>