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) { global $pools; $rc = false; foreach ($disks as $disk) { /* Check the disk type, fsStatus, and ensure the device is not blank. */ if (!in_array($disk['name'], ['flash', 'parity', 'parity2']) && strpos($disk['fsStatus'], 'Unmountable') === false && !empty($disk['device'])) { /* A valid disk with a non-blank device is found. */ $rc = true; break; } } return $rc; } /* Are there any array disks? */ $disks = parse_ini_file('state/disks.ini',true) ?? []; $nodisks = checkDisks($disks) ? "" : "disabled"; ?>
| _(Name)_ | _(Comment)_ | _(SMB)_ | _(NFS)_ | _(Storage)_ | _(Size)_ | _(Free)_ |