Subversion Repositories ALCASAR

Rev

Rev 2770 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2770 Rev 3037
Line 177... Line 177...
177
    {
177
    {
178
        $buf = "";
178
        $buf = "";
179
        if (($lines = $this->_get_buildprop()) && preg_match('/^ro\.build\.version\.release=([^\n]+)/m', $lines, $ar_buf)) {
179
        if (($lines = $this->_get_buildprop()) && preg_match('/^ro\.build\.version\.release=([^\n]+)/m', $lines, $ar_buf)) {
180
                $buf = trim($ar_buf[1]);
180
                $buf = trim($ar_buf[1]);
181
        }
181
        }
182
        if (is_null($buf) || ($buf == "")) {
182
        if (($buf === null) || ($buf == "")) {
183
            $this->sys->setDistribution('Android');
183
            $this->sys->setDistribution('Android');
184
        } else {
184
        } else {
185
            if (preg_match('/^(\d+\.\d+)/', $buf, $ver)
185
            if (preg_match('/^(\d+\.\d+)/', $buf, $ver)
186
                && ($list = @parse_ini_file(PSI_APP_ROOT."/data/osnames.ini", true))
186
                && ($list = @parse_ini_file(PSI_APP_ROOT."/data/osnames.ini", true))
187
                && isset($list['Android'][$ver[1]])) {
187
                && isset($list['Android'][$ver[1]])) {
Line 239... Line 239...
239
    /**
239
    /**
240
     * get the information
240
     * get the information
241
     *
241
     *
242
     * @see PSI_Interface_OS::build()
242
     * @see PSI_Interface_OS::build()
243
     *
243
     *
244
     * @return Void
244
     * @return void
245
     */
245
     */
246
    public function build()
246
    public function build()
247
    {
247
    {
248
        if (!$this->blockname || $this->blockname==='vitals') {
248
        if (!$this->blockname || $this->blockname==='vitals') {
249
            $this->_distro();
249
            $this->_distro();
Line 255... Line 255...
255
            $this->_processes();
255
            $this->_processes();
256
        }
256
        }
257
        if (!$this->blockname || $this->blockname==='hardware') {
257
        if (!$this->blockname || $this->blockname==='hardware') {
258
            $this->_machine();
258
            $this->_machine();
259
            $this->_cpuinfo();
259
            $this->_cpuinfo();
-
 
260
            $this->_virtualizer();
260
            $this->_pci();
261
            $this->_pci();
261
            $this->_usb();
262
            $this->_usb();
262
            $this->_i2c();
263
            $this->_i2c();
263
        }
264
        }
264
        if (!$this->blockname || $this->blockname==='network') {
-
 
265
            $this->_network();
-
 
266
        }
-
 
267
        if (!$this->blockname || $this->blockname==='memory') {
265
        if (!$this->blockname || $this->blockname==='memory') {
268
            $this->_memory();
266
            $this->_memory();
269
        }
267
        }
270
        if (!$this->blockname || $this->blockname==='filesystem') {
268
        if (!$this->blockname || $this->blockname==='filesystem') {
271
            $this->_filesystems();
269
            $this->_filesystems();
272
        }
270
        }
-
 
271
        if (!$this->blockname || $this->blockname==='network') {
-
 
272
            $this->_network();
-
 
273
        }
273
    }
274
    }
274
}
275
}