* Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme
- Adding SM2 panel [SME: 13004] - Upgrade to phpsysinfo 3.4.4 - Add code to delete inline styles and add css to make it look better. - version saved / built uses the static version, which means no drops downs and choices.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* hwsensors sensor class
|
||||
* hwsensors sensor class, getting information from hwsensors
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
@@ -8,18 +8,7 @@
|
||||
* @package PSI_Sensor
|
||||
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
|
||||
* @copyright 2009 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
|
||||
* @version SVN: $Id: class.hwsensors.inc.php 661 2012-08-27 11:26:39Z namiltd $
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
/**
|
||||
* getting information from hwsensors
|
||||
*
|
||||
* @category PHP
|
||||
* @package PSI_Sensor
|
||||
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
|
||||
* @copyright 2009 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
|
||||
* @version Release: 3.0
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
@@ -33,15 +22,17 @@ class HWSensors extends Sensors
|
||||
private $_lines = array();
|
||||
|
||||
/**
|
||||
* fill the private content var through tcp or file access
|
||||
* fill the private content var through command
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$lines = "";
|
||||
// CommonFunctions::executeProgram('sysctl', '-w hw.sensors', $lines);
|
||||
CommonFunctions::executeProgram('sysctl', 'hw.sensors', $lines);
|
||||
$this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
|
||||
if (PSI_OS == 'OpenBSD') {
|
||||
$lines = "";
|
||||
// CommonFunctions::executeProgram('sysctl', '-w hw.sensors', $lines);
|
||||
CommonFunctions::executeProgram('sysctl', 'hw.sensors', $lines);
|
||||
$this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -145,7 +136,7 @@ class HWSensors extends Sensors
|
||||
*
|
||||
* @see PSI_Interface_Sensor::build()
|
||||
*
|
||||
* @return Void
|
||||
* @return void
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
|
Reference in New Issue
Block a user