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();
    }
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版本' =>  Th nkPHP ' . T I K_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_ S, '主机名信息' => $reque t- s erver(' SE RVER_N A ME') . ' (' . r ques - s erver(' SE RVER_A D DR') . ':' .  $ e ues - s erver(' SE RVER_P O RT') . ')', '运行环境' => $req es - >server (' SERVER _ SOFTWARE'), 'PHP运行方式' => php_ ap _name(), '程序目录' => WEB_ AT , 'MYSQL版本' =>  MY QL ' . $ y q l_version[0][ ' v e r sion'], '上传限制' => ini_ et 'upload _ max_filesize'), 'POST限制' =>  ni get('po s t_max_size'), '最大内存' => ini_ et 'memory _ limit'), '执行时间限制' => ini_get( ma _execut i on_time') . "秒", '内存使用' => Comm n: format By tes(@memory _ g et_usage()), '磁盘使用' => Comm n: format By tes(@disk_f r e e_space(".")) . '/' . C mmo : format By tes(@disk_t o t al_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
首页