diff --git a/app/controller/admin/Index.php b/app/controller/admin/Index.php index ba12d4ed..32bbf77f 100755 --- a/app/controller/admin/Index.php +++ b/app/controller/admin/Index.php @@ -21,6 +21,12 @@ class Index extends Base { * @return html [description] */ public function index() { + //判断安装文件是否删除 + $this->data['install_file'] = false; + $file = $this->app->getRootPath() . 'public' . DIRECTORY_SEPARATOR . 'install.php'; + if (is_file($file)) { + $this->data['install_file'] = true; + } return $this->fetch(); } diff --git a/view/admin/index/index.html b/view/admin/index/index.html index d8146e96..2b30cb88 100755 --- a/view/admin/index/index.html +++ b/view/admin/index/index.html @@ -1,6 +1,14 @@ {extend name="admin/public/base" /} {block name="body"}
+ {if $install_file} +
+
+

安全提示

+

安装文件未删除,为了系统安全请删除系统安装文件!

+
+
+ {/if} {:hook('AdminIndex')}
{/block} \ No newline at end of file