diff --git a/scripts/halt.php b/scripts/halt.php index adab8a0..f2616c6 100644 --- a/scripts/halt.php +++ b/scripts/halt.php @@ -60,7 +60,6 @@ if (!isset($_SERVER['PHP_AUTH_USER']) && HALTUSER !== "" && HALTPW !== "") { /dev/null 2>&1 &'); ?> diff --git a/scripts/log.php b/scripts/log.php index 4c5c088..bcbf950 100644 --- a/scripts/log.php +++ b/scripts/log.php @@ -18,7 +18,13 @@ textdomain('messages'); include "../include/tools.php"; include "../include/functions.php"; -include "../include/init.php"; + +//Some basic inits +$mmdvmconfigs = getMMDVMConfig(); +if (!defined("MMDVMLOGPREFIX")) + define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs)); +if (!defined("TIMEZONE")) + define("TIMEZONE", "UTC"); if (!isset($_SERVER['PHP_AUTH_USER']) && VIEWLOGUSER !== "" && VIEWLOGPW !== "") { header('WWW-Authenticate: Basic realm="Dashboard"'); diff --git a/scripts/rebootmmdvm.php b/scripts/rebootmmdvm.php index 036a61a..3b3df69 100644 --- a/scripts/rebootmmdvm.php +++ b/scripts/rebootmmdvm.php @@ -61,7 +61,6 @@ if (!isset($_SERVER['PHP_AUTH_USER']) && RESTARTUSER !== "" && RESTARTPW !== "") diff --git a/version.php b/version.php index 4af41c6..0d89e0a 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@