Skip to content

Commit

Permalink
自动安装提示更新
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyao-work committed Jul 22, 2017
1 parent 2d52425 commit 1aaa1bb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 32 deletions.
2 changes: 1 addition & 1 deletion App/Admin/View/v5/Public/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<div class="login-content bounceIn" data-animation="bounceIn">
<form action="__MODULE__/Public/checklogin" method="post" name="myform">
<div class="section-title">
<h3>万兴神剪手</h3>
<h3>红海螺内容管理系统</h3>
</div>
<div class="textbox-wrap">
<div class="input-group">
Expand Down
30 changes: 0 additions & 30 deletions error.txt

This file was deleted.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<div class="container">
<div class="bs-callout bs-callout-warning">
<h4>你来错地方啦!!!</h4>
<p>TP-Admin V5 入口文件是 /Public/index.php,请将DocumentRoot指向到 /Public/ ;</p>
<p>TP-Admin V5 入口文件是 /public/index.php,请将DocumentRoot指向到 /public/ ;</p>
<p>系统安装请参考,<a href="http://www.hhailuo.com/tp-admin-v5" target="_blank">TP-Admin V5 使用教程</a></p>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
die('require PHP > 5.4.0 !');
}

if (!file_exists(realpath("../install.lock"))) {
header('Location: ./install/index.php');
exit();
}

define("APP_ENV", isset($_SERVER['APP_ENV']) ? strtolower($_SERVER['APP_ENV']) : 'local');

// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
Expand Down

0 comments on commit 1aaa1bb

Please sign in to comment.