Subversion Repositories ALCASAR

Rev

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

Rev 3037 Rev 3100
Line 52... Line 52...
52
    /**
52
    /**
53
     * Kernel Version
53
     * Kernel Version
54
     *
54
     *
55
     * @return void
55
     * @return void
56
     */
56
     */
57
    private function _kernel()
57
    protected function _kernel()
58
    {
58
    {
59
        if (CommonFunctions::executeProgram('uname', '-r', $strBuf, false)) {
59
        if (CommonFunctions::executeProgram('uname', '-r', $strBuf, false)) {
60
            $result = $strBuf;
60
            $result = $strBuf;
61
            if (CommonFunctions::executeProgram('uname', '-v', $strBuf, PSI_DEBUG)) {
61
            if (CommonFunctions::executeProgram('uname', '-v', $strBuf, PSI_DEBUG)) {
62
                if (preg_match('/SMP/', $strBuf)) {
62
                if (preg_match('/SMP/', $strBuf)) {
Line 89... Line 89...
89
    /**
89
    /**
90
     * filesystem information
90
     * filesystem information
91
     *
91
     *
92
     * @return void
92
     * @return void
93
     */
93
     */
94
    private function _filesystems()
94
    protected function _filesystems()
95
    {
95
    {
96
        $notwas = true;
96
        $notwas = true;
97
        if (CommonFunctions::executeProgram('df', '2>/dev/null ', $df, PSI_DEBUG) && preg_match("/\s+[0-9\.]+[KMGT]\s+/", $df)) {
97
        if (CommonFunctions::executeProgram('df', '2>/dev/null ', $df, PSI_DEBUG) && preg_match("/\s+[0-9\.]+[KMGT]\s+/", $df)) {
98
            $df = preg_split("/\n/", $df, -1, PREG_SPLIT_NO_EMPTY);
98
            $df = preg_split("/\n/", $df, -1, PREG_SPLIT_NO_EMPTY);
99
            if (CommonFunctions::executeProgram('mount', '', $mount, PSI_DEBUG)) {
99
            if (CommonFunctions::executeProgram('mount', '', $mount, PSI_DEBUG)) {
Line 195... Line 195...
195
    /**
195
    /**
196
     * Machine
196
     * Machine
197
     *
197
     *
198
     * @return void
198
     * @return void
199
     */
199
     */
200
    private function _machine()
200
    protected function _machine()
201
    {
201
    {
202
        if ($lines = $this->_get_buildprop()) {
202
        if ($lines = $this->_get_buildprop()) {
203
            $buf = "";
203
            $buf = "";
204
            if (preg_match('/^ro\.product\.manufacturer=([^\n]+)/m', $lines, $ar_buf) && (trim($ar_buf[1]) !== "unknown")) {
204
            if (preg_match('/^ro\.product\.manufacturer=([^\n]+)/m', $lines, $ar_buf) && (trim($ar_buf[1]) !== "unknown")) {
205
                $buf .= ' '.trim($ar_buf[1]);
205
                $buf .= ' '.trim($ar_buf[1]);