Menu="Shares:1" Title="User Shares" Tag="user-circle" Cond="_var($var,'fsState')!='Stopped' && _var($var,'shareUser')=='e'" --- // Function to filter out unwanted disks, check if any valid disks exist, and ignore disks with a blank device. function checkDisks($disks) { foreach ($disks as $disk) { // Check the disk type, fsStatus, and ensure the device is not blank. if (!in_array($disk['name'], ['flash', 'parity', 'parity2']) && $disk['fsStatus'] !== "Unmountable: unsupported or no file system" && !empty($disk['device'])) { // A valid disk with a non-blank device is found, return true. return true; } } // No valid disks found, return false. return false; } /* Are there any array disks? */ $disks = parse_ini_file('state/disks.ini',true) ?? []; $nodisks = checkDisks($disks) ? "" : "disabled"; ?>
| _(Name)_ | _(Comment)_ | _(SMB)_ | _(NFS)_ | _(Storage)_ | _(Size)_ | _(Free)_ |