mirror of
https://github.com/unraid/webgui.git
synced 2026-01-27 12:09:06 -06:00
Merge pull request #2036 from Mainfrezzer/Mainfrezzer-patch-1
Avoid automatic shutdown while being logged in and visiting Boot.php
This commit is contained in:
@@ -157,6 +157,9 @@ $(document).ajaxSend(function(elm, xhr, s){
|
||||
</script>
|
||||
</head>
|
||||
<?
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST'){
|
||||
|
||||
|
||||
$safemode = '/boot/unraidsafemode';
|
||||
$progress = (_var($var,'fsProgress')!='') ? "<br><span class='blue'>{$var['fsProgress']}</span>" : "<br> ";
|
||||
|
||||
@@ -187,5 +190,10 @@ default:
|
||||
echo '</div>';
|
||||
echo '<div class="sub2"></div>';
|
||||
echo '</body>';
|
||||
}else{
|
||||
?>
|
||||
echo <body onload="location='/Main'"></body>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user