application/manage/controller/Index.php
public function index(Request $request)
    {
        $this->site_title = '后台首页';
        
        // 基础统计
        $site_info = [
            'member_num' => MemberLogic::model()->count(),
            'menu_num' => MenuLogic::model()->count(),
            'file_num' => FileLogic::model()->count(),
            'config_num' => ConfigLogic::model()->count()
        ];
        $this->assign('site_info', $site_info);
        
        // 系统信息
        $mysql_version = Db::query('select version() as version');
        $server_info = array(
            'ThinkPHP版本' => 'ThinkPHP ' . THINK_VERSION,
            'CMS信息' => '作者 : <a class="am-text-success" target="new" href="https://www.newday.me">哩呵</a> , GIT : <a class="am-text-success" target="new" href="https://github.com/newday-me/think-cms">NewDayCms</a>。',
            '操作系统' => PHP_OS,
            '主机名信息' => $request->server('SERVER_NAME') . ' (' . $request->server('SERVER_ADDR') . ':' . $request->server('SERVER_PORT') . ')',
            '运行环境' => $request->server('SERVER_SOFTWARE'),
            'PHP运行方式' => php_sapi_name(),
            '程序目录' => WEB_PATH,
            'MYSQL版本' => 'MYSQL ' . $mysql_version[0]['version'],
            '上传限制' => ini_get('upload_max_filesize'),
            'POST限制' => ini_get('post_max_size'),
            '最大内存' => ini_get('memory_limit'),
            '执行时间限制' => ini_get('max_execution_time') . "秒",
            '内存使用' => Common::formatBytes(@memory_get_usage()),
            '磁盘使用' => Common::formatBytes(@disk_free_space(".")) . '/' . Common::formatBytes(@disk_total_space(".")),
            'display_errors' => ini_get("display_errors") == "1" ? '√' : '×',
            'register_globals' => get_cfg_var("register_globals") == "1" ? '√' : '×',
            'magic_quotes_gpc' => (1 === get_magic_quotes_gpc()) ? '√' : '×',
            'magic_quotes_runtime' => (1 === get_magic_quotes_runtime()) ? '√' : '×'
        );
        $this->assign('server_info', $server_info);
        
        // 扩展列表
        $extensions_list = get_loaded_extensions();
        $this->assign('extensions_list', implode(' , ', $extensions_list));
        
        return $this->fetch();
    }
public function index(Request $request)
    {
        $this->site_title = '后台首页';
        
        // 基础统计
        $site_info = [
            'member_num' => MemberLogic::model()->count(),
            'menu_num' => MenuLogic::model()->count(),
            'file_num' => FileLogic::model()->count(),
            'config_num' => ConfigLogic::model()->count()
        ];
        $this->assign('site_info', $site_info);
        
        // 系统信息
        $mysql_version = Db::query('select version() as version');
        $server_info = array(
            'ThinkPHP版本' => 'ThinkPHP ' . THINK_VERSION,
            'CMS信息' => '作者 : <a class="am-text-success" target="new" href="https://www.newday.me">哩呵</a> , GIT : <a class="am-text-success" target="new" href="https://github.com/newday-me/think-cms">NewDayCms</a>。',
            '操作系统' => PHP_OS,
            '主机名信息' => $request->server('SERVER_NAME') . ' (' . $request->server('SERVER_ADDR') . ':' . $request->server('SERVER_PORT') . ')',
            '运行环境' => $request->server('SERVER_SOFTWARE'),
            'PHP运行方式' => php_sapi_name(),
            '程序目录' => WEB_PATH,
            'MYSQL版本' => 'MYSQL ' . $mysql_version[0]['version'],
            '上传限制' => ini_get('upload_max_filesize'),
            'POST限制' => ini_get('post_max_size'),
            '最大内存' => ini_get('memory_limit'),
            '执行时间限制' => ini_get('max_execution_time') . "秒",
            '内存使用' => Common::formatBytes(@memory_get_usage()),
            '磁盘使用' => Common::formatBytes(@disk_free_space(".")) . '/' . Common::formatBytes(@disk_total_space(".")),
            'display_errors' => ini_get("display_errors") == "1" ? '√' : '×',
            'register_globals' => get_cfg_var("register_globals") == "1" ? '√' : '×',
            'magic_quotes_gpc' => (1 === get_magic_quotes_gpc()) ? '√' : '×',
            'magic_quotes_runtime' => (1 === get_magic_quotes_runtime()) ? '√' : '×'
        );
        $this->assign('server_info', $server_info);
        
        // 扩展列表
        $extensions_list = get_loaded_extensions();
        $this->assign('extensions_list', implode(' , ', $extensions_list));
        
        return $this->fetch();
    }
首页

@param Request $request
@return string