| @@ 80-92 (lines=13) @@ | ||
| 77 | } |
|
| 78 | } |
|
| 79 | } |
|
| 80 | if (defined('PSI_PLUGIN_SMART_IDS') && is_string(PSI_PLUGIN_SMART_IDS)) { |
|
| 81 | if (preg_match(ARRAY_EXP, PSI_PLUGIN_SMART_IDS)) { |
|
| 82 | $fullIds = eval(PSI_PLUGIN_SMART_IDS); |
|
| 83 | } else { |
|
| 84 | $fullIds = array(PSI_PLUGIN_SMART_IDS); |
|
| 85 | } |
|
| 86 | foreach ($fullIds as $fullId) { |
|
| 87 | $arrFullId = preg_split('/-/', $fullId); |
|
| 88 | $this->_ids[intval($arrFullId[0])] = strtolower($arrFullId[1]); |
|
| 89 | if (!empty($arrFullId[2])) |
|
| 90 | $this->_ids[intval($arrFullId[2])] = "#replace-".intval($arrFullId[0]); |
|
| 91 | } |
|
| 92 | } |
|
| 93 | break; |
|
| 94 | case 'data': |
|
| 95 | if (defined('PSI_PLUGIN_SMART_DEVICES') && is_string(PSI_PLUGIN_SMART_DEVICES)) { |
|
| @@ 110-122 (lines=13) @@ | ||
| 107 | $dn++; |
|
| 108 | } |
|
| 109 | } |
|
| 110 | if (defined('PSI_PLUGIN_SMART_IDS') && is_string(PSI_PLUGIN_SMART_IDS)) { |
|
| 111 | if (preg_match(ARRAY_EXP, PSI_PLUGIN_SMART_IDS)) { |
|
| 112 | $fullIds = eval(PSI_PLUGIN_SMART_IDS); |
|
| 113 | } else { |
|
| 114 | $fullIds = array(PSI_PLUGIN_SMART_IDS); |
|
| 115 | } |
|
| 116 | foreach ($fullIds as $fullId) { |
|
| 117 | $arrFullId = preg_split('/-/', $fullId); |
|
| 118 | $this->_ids[intval($arrFullId[0])] = strtolower($arrFullId[1]); |
|
| 119 | if (!empty($arrFullId[2])) |
|
| 120 | $this->_ids[intval($arrFullId[2])] = "#replace-".intval($arrFullId[0]); |
|
| 121 | } |
|
| 122 | } |
|
| 123 | break; |
|
| 124 | default: |
|
| 125 | $this->global_error->addError("switch(PSI_PLUGIN_SMART_ACCESS)", "Bad SMART configuration in phpsysinfo.ini"); |
|