Subversion Repositories ALCASAR

Rev

Rev 3037 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3037 Rev 3100
Line 27... Line 27...
27
    public function __construct()
27
    public function __construct()
28
    {
28
    {
29
        parent::__construct();
29
        parent::__construct();
30
        switch (defined('PSI_SENSOR_THERMALZONE_ACCESS')?strtolower(PSI_SENSOR_THERMALZONE_ACCESS):'command') {
30
        switch (defined('PSI_SENSOR_THERMALZONE_ACCESS')?strtolower(PSI_SENSOR_THERMALZONE_ACCESS):'command') {
31
        case 'command':
31
        case 'command':
32
            if ((PSI_OS == 'WINNT') || defined('PSI_EMU_HOSTNAME')) {
32
            if ((PSI_OS == 'WINNT') || (defined('PSI_EMU_HOSTNAME') && !defined('PSI_EMU_PORT'))) {
33
                if (defined('PSI_EMU_HOSTNAME') || WINNT::isAdmin()) {
33
                if (defined('PSI_EMU_HOSTNAME') || WINNT::isAdmin()) {
34
                    $_wmi = WINNT::initWMI('root\WMI', true);
34
                    $_wmi = WINNT::initWMI('root\WMI', true);
35
                    if ($_wmi) {
35
                    if ($_wmi) {
36
                        $this->_buf = WINNT::getWMI($_wmi, 'MSAcpi_ThermalZoneTemperature', array('InstanceName', 'CriticalTripPoint', 'CurrentTemperature'));
36
                        $this->_buf = WINNT::getWMI($_wmi, 'MSAcpi_ThermalZoneTemperature', array('InstanceName', 'CriticalTripPoint', 'CurrentTemperature'));
37
                    }
37
                    }