Subversion Repositories ALCASAR

Rev

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

Rev 2976 Rev 3037
Line 34... Line 34...
34
    public function __construct()
34
    public function __construct()
35
    {
35
    {
36
        parent::__construct();
36
        parent::__construct();
37
        if ((PSI_OS == 'WINNT') && !defined('PSI_EMU_HOSTNAME')) {
37
        if ((PSI_OS == 'WINNT') && !defined('PSI_EMU_HOSTNAME')) {
38
            $delim = "/;/";
38
            $delim = "/;/";
39
            CommonFunctions::rfts(PSI_APP_ROOT."/data/MBM5.csv", $buffer);
39
            CommonFunctions::rftsdata("MBM5.csv", $buffer);
40
            if (strpos($buffer, ";") === false) {
40
            if (strpos($buffer, ";") === false) {
41
                $delim = "/,/";
41
                $delim = "/,/";
42
            }
42
            }
43
            $buffer = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
43
            $buffer = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
44
            $this->_buf_label = preg_split($delim, substr($buffer[0], 0, -2), -1, PREG_SPLIT_NO_EMPTY);
44
            $this->_buf_label = preg_split($delim, substr($buffer[0], 0, -2), -1, PREG_SPLIT_NO_EMPTY);
Line 108... Line 108...
108
    /**
108
    /**
109
     * get the information
109
     * get the information
110
     *
110
     *
111
     * @see PSI_Interface_Sensor::build()
111
     * @see PSI_Interface_Sensor::build()
112
     *
112
     *
113
     * @return Void
113
     * @return void
114
     */
114
     */
115
    public function build()
115
    public function build()
116
    {
116
    {
117
        $this->_fans();
117
        $this->_fans();
118
        $this->_temperature();
118
        $this->_temperature();