Bugfixing some Error 500
This commit is contained in:
parent
e1352f3037
commit
c0d686d5b6
4 changed files with 8 additions and 4 deletions
|
@ -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>
|
||||||
|
|
|
@ -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"');
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
define("VERSION", "20170922-1 (".getGitVersion().")");
|
define("VERSION", "20170923-1 (".getGitVersion().")");
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue