diff --git a/include/functions.php b/include/functions.php index 0df532b..17bfaa4 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,10 +1,21 @@ &1", $output); + if (substr($output[0],18,8) == ".ini fil") { + return getMMDVMHostFileVersion(); + } else { + return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")"; + } +} + +function getMMDVMHostFileVersion() { // returns creation-time of MMDVMHost as version-number $filename = MMDVMHOSTPATH . "MMDVMHost"; if (file_exists($filename)) { - return date("Y-m-d", filectime($filename)); + return date("d M y", filectime($filename)); } } @@ -393,4 +404,4 @@ function getActualReflector($logLines, $mode) { $mmdvmconfigs = getMMDVMConfig(); $logLines = getLog(); $lastHeard = getLastHeard($logLines); -?> \ No newline at end of file +?> diff --git a/index.php b/index.php index cf3cc53..b422412 100644 --- a/index.php +++ b/index.php @@ -33,7 +33,7 @@ include "include/functions.php"; echo "Hotspot"; } ?>: -

MMDVMHost v by G4KLX

+

MMDVMHost by G4KLX Version: