系统安全提示!

This commit is contained in:
2020-04-14 14:53:27 +08:00
parent 84b9563704
commit 6b9298df5d
2 changed files with 14 additions and 0 deletions

View File

@@ -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();
}

View File

@@ -1,6 +1,14 @@
{extend name="admin/public/base" /}
{block name="body"}
<div class="row">
{if $install_file}
<div class="col-sm-12">
<div class="callout callout-danger">
<h4>安全提示</h4>
<p>安装文件未删除,为了系统安全请删除系统安装文件!</p>
</div>
</div>
{/if}
{:hook('AdminIndex')}
</div>
{/block}