系统安全提示!
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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}
|
||||
Reference in New Issue
Block a user