Subversion Repositories ALCASAR

Rev

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

Rev 2976 Rev 3037
Line 215... Line 215...
215
     *
215
     *
216
     * @return void
216
     * @return void
217
     */
217
     */
218
    private function _hostname()
218
    private function _hostname()
219
    {
219
    {
220
        if (PSI_USE_VHOST === true) {
220
        if (PSI_USE_VHOST) {
221
            if (CommonFunctions::readenv('SERVER_NAME', $hnm)) $this->sys->setHostname($hnm);
221
            if (CommonFunctions::readenv('SERVER_NAME', $hnm)) $this->sys->setHostname($hnm);
222
        } else {
222
        } else {
223
            if (CommonFunctions::executeProgram('uname', '-n', $result, PSI_DEBUG)) {
223
            if (CommonFunctions::executeProgram('uname', '-n', $result, PSI_DEBUG)) {
224
                $ip = gethostbyname($result);
224
                $ip = gethostbyname($result);
225
                if ($ip != $result) {
225
                if ($ip != $result) {
Line 366... Line 366...
366
    }
366
    }
367
 
367
 
368
    /**
368
    /**
369
     * get the information
369
     * get the information
370
     *
370
     *
371
     * @return Void
371
     * @return void
372
     */
372
     */
373
    public function build()
373
    public function build()
374
    {
374
    {
375
        $this->error->addError("WARN", "The Haiku version of phpSysInfo is a work in progress, some things currently don't work");
375
        $this->error->addWarning("The Haiku version of phpSysInfo is a work in progress, some things currently don't work");
376
        if (!$this->blockname || $this->blockname==='vitals') {
376
        if (!$this->blockname || $this->blockname==='vitals') {
377
            $this->_distro();
377
            $this->_distro();
378
            $this->_hostname();
378
            $this->_hostname();
379
            $this->_kernel();
379
            $this->_kernel();
380
            $this->_uptime();
380
            $this->_uptime();
Line 385... Line 385...
385
        if (!$this->blockname || $this->blockname==='hardware') {
385
        if (!$this->blockname || $this->blockname==='hardware') {
386
           $this->_cpuinfo();
386
           $this->_cpuinfo();
387
           $this->_pci();
387
           $this->_pci();
388
           $this->_usb();
388
           $this->_usb();
389
        }
389
        }
390
        if (!$this->blockname || $this->blockname==='network') {
-
 
391
            $this->_network();
-
 
392
        }
-
 
393
        if (!$this->blockname || $this->blockname==='memory') {
390
        if (!$this->blockname || $this->blockname==='memory') {
394
            $this->_memory();
391
            $this->_memory();
395
        }
392
        }
396
        if (!$this->blockname || $this->blockname==='filesystem') {
393
        if (!$this->blockname || $this->blockname==='filesystem') {
397
            $this->_filesystems();
394
            $this->_filesystems();
398
        }
395
        }
-
 
396
        if (!$this->blockname || $this->blockname==='network') {
-
 
397
            $this->_network();
-
 
398
        }
399
    }
399
    }
400
}
400
}