From c0d686d5b6a95bea8a02bb69a5ad1d494422fd5b Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Sat, 23 Sep 2017 18:34:16 +0000 Subject: [PATCH] Bugfixing some Error 500 --- scripts/halt.php | 1 - scripts/log.php | 8 +++++++- scripts/rebootmmdvm.php | 1 - version.php | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) 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 @@