Subversion Repositories ALCASAR

Rev

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

Rev 3037 Rev 3100
Line 82... Line 82...
82
                            $this->_output[$upsname] = $temp;
82
                            $this->_output[$upsname] = $temp;
83
                        }
83
                        }
84
                    }
84
                    }
85
                }
85
                }
86
            } else { //use default if address and port not defined
86
            } else { //use default if address and port not defined
87
                if (!defined('PSI_EMU_HOSTNAME')) {
87
                if (!defined('PSI_EMU_HOSTNAME') || defined('PSI_EMU_PORT')) {
88
                    CommonFunctions::executeProgram('upsc', '-l', $output, PSI_DEBUG);
88
                    CommonFunctions::executeProgram('upsc', '-l', $output, PSI_DEBUG);
89
                } else {
89
                } else {
90
                    CommonFunctions::executeProgram('upsc', '-l '.PSI_EMU_HOSTNAME, $output, PSI_DEBUG);
90
                    CommonFunctions::executeProgram('upsc', '-l '.PSI_EMU_HOSTNAME, $output, PSI_DEBUG);
91
                }
91
                }
92
                $ups_names = preg_split("/\n/", $output, -1, PREG_SPLIT_NO_EMPTY);
92
                $ups_names = preg_split("/\n/", $output, -1, PREG_SPLIT_NO_EMPTY);