Bugfixing some Error 500

This commit is contained in:
Kim Huebel 2017-09-23 18:34:16 +00:00
parent e1352f3037
commit c0d686d5b6
4 changed files with 8 additions and 4 deletions

View file

@ -60,7 +60,6 @@ if (!isset($_SERVER['PHP_AUTH_USER']) && HALTUSER !== "" && HALTPW !== "") {
</div> </div>
<?php <?php
checkSetup(); checkSetup();
include "../include/sysinfo.php";
exec(HALTSYS. ' > /dev/null 2>&1 &'); exec(HALTSYS. ' > /dev/null 2>&1 &');
?> ?>
<div class="alert alert-info" role="alert">Executing <b><?php echo HALTSYS ?></b><br><?php echo _("Halt in progress...bye"); ?></div> <div class="alert alert-info" role="alert">Executing <b><?php echo HALTSYS ?></b><br><?php echo _("Halt in progress...bye"); ?></div>

View file

@ -18,7 +18,13 @@ textdomain('messages');
include "../include/tools.php"; include "../include/tools.php";
include "../include/functions.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 !== "") { if (!isset($_SERVER['PHP_AUTH_USER']) && VIEWLOGUSER !== "" && VIEWLOGPW !== "") {
header('WWW-Authenticate: Basic realm="Dashboard"'); header('WWW-Authenticate: Basic realm="Dashboard"');

View file

@ -61,7 +61,6 @@ if (!isset($_SERVER['PHP_AUTH_USER']) && RESTARTUSER !== "" && RESTARTPW !== "")
</div> </div>
<?php <?php
checkSetup(); checkSetup();
include "../include/sysinfo.php";
exec( REBOOTMMDVM ); exec( REBOOTMMDVM );
?> ?>
<div class="alert alert-info" role="alert"><?php echo _("Executing"); ?> <b><?php echo REBOOTMMDVM ?></b><br><?php echo _("Reboot MMDVMHost service in progress"); ?></div> <div class="alert alert-info" role="alert"><?php echo _("Executing"); ?> <b><?php echo REBOOTMMDVM ?></b><br><?php echo _("Reboot MMDVMHost service in progress"); ?></div>

View file

@ -1,3 +1,3 @@
<?php <?php
define("VERSION", "20170922-1 (".getGitVersion().")"); define("VERSION", "20170923-1 (".getGitVersion().")");
?> ?>