Show shares when array is online and has formatting disks

This commit is contained in:
bergware
2017-10-07 07:52:32 +02:00
parent 66d7f1bd26
commit 060ccdce6f
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
Menu="Shares:2"
Title="Disk Shares"
Tag="user-circle-o"
Cond="$var['fsState']=='Started' && $var['shareDisk']!='no'"
Cond="$var['fsState']!="Stopped" && $var['shareUser']=='e'"
---
<?PHP
/* Copyright 2005-2017, Lime Technology

View File

@@ -1,7 +1,7 @@
Menu="Shares:1"
Title="User Shares"
Tag="user-circle"
Cond="$var['fsState']=="Started" && $var['shareUser']=='e'"
Cond="$var['fsState']!="Stopped" && $var['shareUser']=='e'"
---
<?PHP
/* Copyright 2005-2017, Lime Technology

View File

@@ -2,8 +2,8 @@ Menu="Tasks:2"
Type="xmenu"
----
<?PHP
if ($var['fsState']!="Started") {
echo "<p class='notice'>Array must be <span class='strong big'>started</span> to view Shares.</p>";
if ($var['fsState']=="Stopped") {
echo "<p class='notice'>Array must be <span class='strong big'>Started</span> to view Shares.</p>";
return;
}
if (count($pages)==2) $tabbed = false;