From 90f5a2664293ded871d3f56a76d02e3549c4d6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 15 Feb 2017 17:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=9F=BA=E7=A1=80=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Index.php | 9 ++++++++- application/extra/view/admin.content.html | 9 +++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index e14617c02..75686fb4e 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -58,7 +58,14 @@ class Index extends BasicAdmin { $version = Db::query('select version() as ver'); $version = array_pop($version); $this->assign('mysql_ver', $version['ver']); - $this->assign('title', '系统信息'); + if (session('user.username') === 'admin' && session('user.password') === '662af1cd1976f09a9f8cecc868ccc0a2') { + $alert = [ + 'type' => 'danger', + 'title' => '安全提示', + 'content' => '超级管理员默认密码未修改,建议马上修改!' + ]; + $this->assign('alert', $alert); + } return view(); } diff --git a/application/extra/view/admin.content.html b/application/extra/view/admin.content.html index 1caabf094..abdb2aeef 100644 --- a/application/extra/view/admin.content.html +++ b/application/extra/view/admin.content.html @@ -6,6 +6,15 @@ {/if}
+ {if isset($alert)} + + {/if} {block name="content"} {/block}