* 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
|
||||
/**
|
||||
* MBM5 sensor class
|
||||
* MBM5 sensor class, getting information from Motherboard Monitor 5 information retrival through csv file
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
@@ -8,19 +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.mbm5.inc.php 661 2012-08-27 11:26:39Z namiltd $
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
/**
|
||||
* getting information from Motherboard Monitor 5
|
||||
* information retrival through csv file
|
||||
*
|
||||
* @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
|
||||
*/
|
||||
@@ -46,20 +34,15 @@ class MBM5 extends Sensors
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
switch (strtolower(PSI_SENSOR_ACCESS)) {
|
||||
case 'file':
|
||||
if ((PSI_OS == 'WINNT') && !defined('PSI_EMU_HOSTNAME')) {
|
||||
$delim = "/;/";
|
||||
CommonFunctions::rfts(APP_ROOT."/data/MBM5.csv", $buffer);
|
||||
CommonFunctions::rftsdata("MBM5.csv", $buffer);
|
||||
if (strpos($buffer, ";") === false) {
|
||||
$delim = "/,/";
|
||||
}
|
||||
$buffer = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
|
||||
$this->_buf_label = preg_split($delim, substr($buffer[0], 0, -2), -1, PREG_SPLIT_NO_EMPTY);
|
||||
$this->_buf_value = preg_split($delim, substr($buffer[1], 0, -2), -1, PREG_SPLIT_NO_EMPTY);
|
||||
break;
|
||||
default:
|
||||
$this->error->addConfigError('__construct()', 'PSI_SENSOR_ACCESS');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +61,7 @@ class MBM5 extends Sensors
|
||||
$dev = new SensorDevice();
|
||||
$dev->setName($this->_buf_label[$intPosi]);
|
||||
$dev->setValue($hits[0]);
|
||||
$dev->setMax(70);
|
||||
// $dev->setMax(70);
|
||||
$this->mbinfo->setMbTemp($dev);
|
||||
}
|
||||
}
|
||||
@@ -98,7 +81,7 @@ class MBM5 extends Sensors
|
||||
$dev = new SensorDevice();
|
||||
$dev->setName($this->_buf_label[$intPosi]);
|
||||
$dev->setValue($hits[0]);
|
||||
$dev->setMin(3000);
|
||||
// $dev->setMin(3000);
|
||||
$this->mbinfo->setMbFan($dev);
|
||||
}
|
||||
}
|
||||
@@ -127,7 +110,7 @@ class MBM5 extends Sensors
|
||||
*
|
||||
* @see PSI_Interface_Sensor::build()
|
||||
*
|
||||
* @return Void
|
||||
* @return void
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
|
Reference in New Issue
Block a user