phpsysinfo/includes/ups/class.pmset.inc.php 1 location
|
@@ 38-45 (lines=8) @@
|
35 |
|
/** |
36 |
|
* get all information from all configured ups and store output in internal array |
37 |
|
*/ |
38 |
|
public function __construct() |
39 |
|
{ |
40 |
|
parent::__construct(); |
41 |
|
CommonFunctions::executeProgram('pmset', '-g batt', $temp); |
42 |
|
if (! empty($temp)) { |
43 |
|
$this->_output[] = $temp; |
44 |
|
} |
45 |
|
} |
46 |
|
|
47 |
|
/** |
48 |
|
* parse the input and store data in resultset for xml generation |
phpsysinfo/includes/ups/class.powersoftplus.inc.php 1 location
|
@@ 38-45 (lines=8) @@
|
35 |
|
/** |
36 |
|
* get all information from all configured ups in phpsysinfo.ini and store output in internal array |
37 |
|
*/ |
38 |
|
public function __construct() |
39 |
|
{ |
40 |
|
parent::__construct(); |
41 |
|
CommonFunctions::executeProgram('powersoftplus', '-p', $temp); |
42 |
|
if (! empty($temp)) { |
43 |
|
$this->_output[] = $temp; |
44 |
|
} |
45 |
|
} |
46 |
|
|
47 |
|
/** |
48 |
|
* parse the input and store data in resultset for xml generation |