| Line 25... |
Line 25... |
| 25 |
* fill the private array
|
25 |
* fill the private array
|
| 26 |
*/
|
26 |
*/
|
| 27 |
public function __construct()
|
27 |
public function __construct()
|
| 28 |
{
|
28 |
{
|
| 29 |
parent::__construct();
|
29 |
parent::__construct();
|
| 30 |
if ((PSI_OS != 'WINNT') && !defined('PSI_EMU_HOSTNAME')) switch (defined('PSI_SENSOR_K8TEMP_ACCESS')?strtolower(PSI_SENSOR_K8TEMP_ACCESS):'command') {
|
30 |
if ((PSI_OS != 'WINNT') && (!defined('PSI_EMU_HOSTNAME') || defined('PSI_EMU_PORT'))) switch (defined('PSI_SENSOR_K8TEMP_ACCESS')?strtolower(PSI_SENSOR_K8TEMP_ACCESS):'command') {
|
| 31 |
case 'command':
|
31 |
case 'command':
|
| 32 |
$lines = "";
|
32 |
$lines = "";
|
| 33 |
CommonFunctions::executeProgram('k8temp', '', $lines);
|
33 |
CommonFunctions::executeProgram('k8temp', '', $lines);
|
| 34 |
$this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
|
34 |
$this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
|
| 35 |
break;
|
35 |
break;
|
| 36 |
case 'data':
|
36 |
case 'data':
|
| 37 |
if (CommonFunctions::rftsdata('k8temp.tmp', $lines)) {
|
37 |
if (!defined('PSI_EMU_PORT') && CommonFunctions::rftsdata('k8temp.tmp', $lines)) {
|
| 38 |
$this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
|
38 |
$this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
|
| 39 |
}
|
39 |
}
|
| 40 |
break;
|
40 |
break;
|
| 41 |
default:
|
41 |
default:
|
| 42 |
$this->error->addConfigError('__construct()', '[sensor_k8temp] ACCESS');
|
42 |
$this->error->addConfigError('__construct()', '[sensor_k8temp] ACCESS');
|