diff --git a/include/functions.php b/include/functions.php index 0df532b..2e46388 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,10 +1,18 @@ &1", $output); + $version = substr($output[1], 10, 4)."-".substr($output[1], 14, 2)."-".substr($output[1], 16, 2)." (compiled ".getMMDVMHostFileVersion().")"; + return $version; +} + +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)); } } diff --git a/index.php b/index.php index cf3cc53..e26789f 100644 --- a/index.php +++ b/index.php @@ -33,7 +33,7 @@ include "include/functions.php"; echo "Hotspot"; } ?>: -