/web/acc/phpsysinfo/includes/ups/class.apcupsd.inc.php |
---|
52,11 → 52,7 |
} |
} |
} else { //use default if address and port not defined |
if (!defined('PSI_EMU_HOSTNAME')) { |
CommonFunctions::executeProgram('apcaccess', 'status', $temp); |
} else { |
CommonFunctions::executeProgram('apcaccess', 'status '.PSI_EMU_HOSTNAME, $temp); |
} |
CommonFunctions::executeProgram('apcaccess', 'status', $temp); |
if (! empty($temp)) { |
$this->_output[] = $temp; |
} |
/web/acc/phpsysinfo/includes/ups/class.nut.inc.php |
---|
57,11 → 57,7 |
} |
} |
} else { //use default if address and port not defined |
if (!defined('PSI_EMU_HOSTNAME')) { |
CommonFunctions::executeProgram('upsc', '-l', $output, PSI_DEBUG); |
} else { |
CommonFunctions::executeProgram('upsc', '-l '.PSI_EMU_HOSTNAME, $output, PSI_DEBUG); |
} |
CommonFunctions::executeProgram('upsc', '-l', $output, PSI_DEBUG); |
$ups_names = preg_split("/\n/", $output, -1, PREG_SPLIT_NO_EMPTY); |
foreach ($ups_names as $ups_name) { |
CommonFunctions::executeProgram('upsc', trim($ups_name), $temp, PSI_DEBUG); |
/web/acc/phpsysinfo/includes/ups/class.pmset.inc.php |
---|
38,11 → 38,9 |
public function __construct() |
{ |
parent::__construct(); |
if (PSI_OS == 'Darwin') { |
$temp = ""; |
if (CommonFunctions::executeProgram('pmset', '-g batt', $temp) && !empty($temp)) { |
$this->_output[] = $temp; |
} |
$temp = ""; |
if (CommonFunctions::executeProgram('pmset', '-g batt', $temp) && !empty($temp)) { |
$this->_output[] = $temp; |
} |
} |
/web/acc/phpsysinfo/includes/ups/class.powersoftplus.inc.php |
---|
38,11 → 38,9 |
public function __construct() |
{ |
parent::__construct(); |
if (PSI_OS == 'Linux') { |
CommonFunctions::executeProgram('powersoftplus', '-p', $temp); |
if (! empty($temp)) { |
$this->_output[] = $temp; |
} |
CommonFunctions::executeProgram('powersoftplus', '-p', $temp); |
if (! empty($temp)) { |
$this->_output[] = $temp; |
} |
} |