0byt3m1n1
Path:
C:
/
wamp64
/
apps
/
phpsysinfo3.3.1
/
includes
/
mb
/
[
Home
]
File: class.thinkpad.inc.php
<?php /** * thinkpad sensor class, getting hardware temperature information and fan speed from /sys/devices/platform/thinkpad_hwmon/ * * PHP version 5 * * @category PHP * @package PSI_Sensor * @author Mieczyslaw Nalewaj <namiltd@users.sourceforge.net> * @copyright 2017 phpSysInfo * @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 */ class Thinkpad extends Hwmon { /** * get the information * * @see PSI_Interface_Sensor::build() * * @return Void */ public function build() { if (PSI_OS == 'Linux') { $hwpaths = glob("/sys/devices/platform/thinkpad_hwmon/", GLOB_NOSORT); if (is_array($hwpaths) && (count($hwpaths) == 1)) { $this->_temperature($hwpaths[0]); $this->_fans($hwpaths[0]); } } } }