Subversion Repositories ALCASAR

Rev

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

Rev 2976 Rev 3037
Line 126... Line 126...
126
     *
126
     *
127
     * @return void
127
     * @return void
128
     */
128
     */
129
    private function _hostname()
129
    private function _hostname()
130
    {
130
    {
131
        if (PSI_USE_VHOST === true) {
131
        if (PSI_USE_VHOST) {
132
            if (CommonFunctions::readenv('SERVER_NAME', $hnm)) $this->sys->setHostname($hnm);
132
            if (CommonFunctions::readenv('SERVER_NAME', $hnm)) $this->sys->setHostname($hnm);
133
        } else {
133
        } else {
134
            if (CommonFunctions::executeProgram('uname', '-n', $result, PSI_DEBUG)) {
134
            if (CommonFunctions::executeProgram('uname', '-n', $result, PSI_DEBUG)) {
135
                $ip = gethostbyname($result);
135
                $ip = gethostbyname($result);
136
                if ($ip != $result) {
136
                if ($ip != $result) {
Line 452... Line 452...
452
    /**
452
    /**
453
     * get the information
453
     * get the information
454
     *
454
     *
455
     * @see PSI_Interface_OS::build()
455
     * @see PSI_Interface_OS::build()
456
     *
456
     *
457
     * @return Void
457
     * @return void
458
     */
458
     */
459
    public function build()
459
    public function build()
460
    {
460
    {
461
        $this->error->addError("WARN", "The SunOS version of phpSysInfo is a work in progress, some things currently don't work");
461
        $this->error->addWarning("The SunOS version of phpSysInfo is a work in progress, some things currently don't work");
462
        if (!$this->blockname || $this->blockname==='vitals') {
462
        if (!$this->blockname || $this->blockname==='vitals') {
463
            $this->_distro();
463
            $this->_distro();
464
            $this->_hostname();
464
            $this->_hostname();
465
            $this->_kernel();
465
            $this->_kernel();
466
            $this->_uptime();
466
            $this->_uptime();
Line 470... Line 470...
470
        }
470
        }
471
        if (!$this->blockname || $this->blockname==='hardware') {
471
        if (!$this->blockname || $this->blockname==='hardware') {
472
            $this->_cpuinfo();
472
            $this->_cpuinfo();
473
            $this->_pci();
473
            $this->_pci();
474
        }
474
        }
475
        if (!$this->blockname || $this->blockname==='network') {
-
 
476
            $this->_network();
-
 
477
        }
-
 
478
        if (!$this->blockname || $this->blockname==='memory') {
475
        if (!$this->blockname || $this->blockname==='memory') {
479
            $this->_memory();
476
            $this->_memory();
480
        }
477
        }
481
        if (!$this->blockname || $this->blockname==='filesystem') {
478
        if (!$this->blockname || $this->blockname==='filesystem') {
482
            $this->_filesystems();
479
            $this->_filesystems();
483
        }
480
        }
-
 
481
        if (!$this->blockname || $this->blockname==='network') {
-
 
482
            $this->_network();
-
 
483
        }
484
    }
484
    }
485
}
485
}