From 2d5602ad46c92c4bb15090dba8870f6e90886330 Mon Sep 17 00:00:00 2001 From: win7 Date: Thu, 5 Dec 2019 09:28:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AC=A2=E8=BF=8E=E9=A1=B5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Index.php | 14 ++++++++++++++ app/index/view/index/welcome.html | 20 +++++++++++++------- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index f8b4d069..59a99ab3 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -112,6 +112,20 @@ class Index extends BaseController $list['server'] = request()->server(); // 获取版本号 $list->version = config('app.chengji.version'); + // 获取php版本号 + $list->php = phpversion(); + // 获取数据库版本号 + $list->sql = \think\facade\Db::query("select VERSION()"); + $list->sql = $list->sql[0]['VERSION()']; + + // 获取服务器操作系统 + $list->xitong = php_uname('s'); + // 获取磁盘空间 + $list->kongjian = round(disk_free_space('/')*1/1024/1024/1024,2).'GB'; + // 获取Session过期时间 + $list->session = \think\facade\Config::get('session.expire').'s'; + // 获取thinkphp版本 + $list->thinkphp = \think\facade\App::version(); // 考试数 diff --git a/app/index/view/index/welcome.html b/app/index/view/index/welcome.html index f64da1f0..95d4321f 100644 --- a/app/index/view/index/welcome.html +++ b/app/index/view/index/welcome.html @@ -22,8 +22,8 @@
-
欢迎『{$list.group}』: - {$list['xingming']}!当前时间: +
欢迎『{$list.group}』: + {$list['xingming']}!当前时间:
@@ -110,25 +110,31 @@ {$list.server.SERVER_ADDR} 操作系统 - WINNT + {$list.xitong} 运行环境 {$list.server.SERVER_SOFTWARE} + + PHP版本 + {$list.php} + + mysql版本 + {$list.sql} ThinkPHP - {$Think.version} + {$list.thinkphp} X-admin版本 - 2.1 + 2.2 上传附件限制 2M 执行时间限制 - 30s + {$list.session} 剩余空间 - 86015.2M + {$list.kongjian}