app/Http/Controllers/AdminSiteController.php
public function serverInformation(): ResponseInterface
    {
        ob_start();
        phpinfo(INFO_ALL & ~INFO_CREDITS & ~INFO_LICENSE);
        $phpinfo = ob_get_clean();
        preg_match('%<body>(.*)</body>%s', $phpinfo, $matches);
        $phpinfo = $matches[1];

        return $this->viewResponse('admin/server-information', [
            'title'   => I18N::translate('Server information'),
            'phpinfo' => $phpinfo,
        ]);
    }
public function serverInformation(): ResponseInterface
    {
        ob_start();
        phpinfo(INFO_ALL & ~INFO_CREDITS & ~INFO_LICENSE);
        $phpinfo = ob_get_clean();
        preg_match('%<body>(.*)</body>%s', $phpinfo, $matches);
        $phpinfo = $matches[1];

        return $this->viewResponse('admin/server-information', [
            'title'   => I18N::translate('Server information'),
            'phpinfo' => $phpinfo,
        ]);
    }
public function serverInformation ( ) : ResponseInterface { ob_start ( ) ; phpinfo ( INFO_ALL & ~ INFO_CREDITS & ~ INFO_LICENSE ) ; $ phpinfo = ob_get_clean ( ) ; preg_match ( '%<body>(.*)</body>%s' , $ phpinfo , $ matches ) ; $ phpinfo = $ matches [ 1 ] ; return $ this -> viewResponse ( 'admin/server-information' , [ 'title' => I18N :: translate ( 'Server information' ) , 'phpinfo' => $ phpinfo , ] ) ; }
Show the server information page.

@return ResponseInterface
Show the server information page .