| @@ 886-892 (lines=7) @@ | ||
| 883 | { |
|
| 884 | $df_args = ""; |
|
| 885 | $hideFstypes = array(); |
|
| 886 | if (defined('PSI_HIDE_FS_TYPES') && is_string(PSI_HIDE_FS_TYPES)) { |
|
| 887 | if (preg_match(ARRAY_EXP, PSI_HIDE_FS_TYPES)) { |
|
| 888 | $hideFstypes = eval(PSI_HIDE_FS_TYPES); |
|
| 889 | } else { |
|
| 890 | $hideFstypes = array(PSI_HIDE_FS_TYPES); |
|
| 891 | } |
|
| 892 | } |
|
| 893 | foreach ($hideFstypes as $Fstype) { |
|
| 894 | $df_args .= "-x $Fstype "; |
|
| 895 | } |
|
| @@ 386-392 (lines=7) @@ | ||
| 383 | { |
|
| 384 | $hideMounts = $hideFstypes = $hideDisks = array(); |
|
| 385 | $i = 1; |
|
| 386 | if (defined('PSI_HIDE_MOUNTS') && is_string(PSI_HIDE_MOUNTS)) { |
|
| 387 | if (preg_match(ARRAY_EXP, PSI_HIDE_MOUNTS)) { |
|
| 388 | $hideMounts = eval(PSI_HIDE_MOUNTS); |
|
| 389 | } else { |
|
| 390 | $hideMounts = array(PSI_HIDE_MOUNTS); |
|
| 391 | } |
|
| 392 | } |
|
| 393 | if (defined('PSI_HIDE_FS_TYPES') && is_string(PSI_HIDE_FS_TYPES)) { |
|
| 394 | if (preg_match(ARRAY_EXP, PSI_HIDE_FS_TYPES)) { |
|
| 395 | $hideFstypes = eval(PSI_HIDE_FS_TYPES); |
|
| @@ 393-399 (lines=7) @@ | ||
| 390 | $hideMounts = array(PSI_HIDE_MOUNTS); |
|
| 391 | } |
|
| 392 | } |
|
| 393 | if (defined('PSI_HIDE_FS_TYPES') && is_string(PSI_HIDE_FS_TYPES)) { |
|
| 394 | if (preg_match(ARRAY_EXP, PSI_HIDE_FS_TYPES)) { |
|
| 395 | $hideFstypes = eval(PSI_HIDE_FS_TYPES); |
|
| 396 | } else { |
|
| 397 | $hideFstypes = array(PSI_HIDE_FS_TYPES); |
|
| 398 | } |
|
| 399 | } |
|
| 400 | if (defined('PSI_HIDE_DISKS')) { |
|
| 401 | if (is_string(PSI_HIDE_DISKS)) { |
|
| 402 | if (preg_match(ARRAY_EXP, PSI_HIDE_DISKS)) { |
|
| @@ 142-148 (lines=7) @@ | ||
| 139 | return $this->xml->getSimpleXmlElement(); |
|
| 140 | } |
|
| 141 | $hideRaids = array(); |
|
| 142 | if (defined('PSI_PLUGIN_DMRAID_HIDE_RAID_DEVICES') && is_string(PSI_PLUGIN_DMRAID_HIDE_RAID_DEVICES)) { |
|
| 143 | if (preg_match(ARRAY_EXP, PSI_PLUGIN_DMRAID_HIDE_RAID_DEVICES)) { |
|
| 144 | $hideRaids = eval(PSI_PLUGIN_DMRAID_HIDE_RAID_DEVICES); |
|
| 145 | } else { |
|
| 146 | $hideRaids = array(PSI_PLUGIN_DMRAID_HIDE_RAID_DEVICES); |
|
| 147 | } |
|
| 148 | } |
|
| 149 | foreach ($this->_result['devices'] as $key=>$device) { |
|
| 150 | if (!in_array($key, $hideRaids, true)) { |
|
| 151 | $dev = $this->xml->addChild("Raid"); |
|
| @@ 192-198 (lines=7) @@ | ||
| 189 | return $this->xml->getSimpleXmlElement(); |
|
| 190 | } |
|
| 191 | $hideRaids = array(); |
|
| 192 | if (defined('PSI_PLUGIN_MDSTATUS_HIDE_RAID_DEVICES') && is_string(PSI_PLUGIN_MDSTATUS_HIDE_RAID_DEVICES)) { |
|
| 193 | if (preg_match(ARRAY_EXP, PSI_PLUGIN_MDSTATUS_HIDE_RAID_DEVICES)) { |
|
| 194 | $hideRaids = eval(PSI_PLUGIN_MDSTATUS_HIDE_RAID_DEVICES); |
|
| 195 | } else { |
|
| 196 | $hideRaids = array(PSI_PLUGIN_MDSTATUS_HIDE_RAID_DEVICES); |
|
| 197 | } |
|
| 198 | } |
|
| 199 | $sup = $this->xml->addChild("Supported_Types"); |
|
| 200 | foreach ($this->_result['supported_types'] as $type) { |
|
| 201 | $typ = $sup->addChild("Type"); |
|