mirror of
https://github.com/helloxz/onenav.git
synced 2026-06-04 21:02:43 +08:00
20220423
This commit is contained in:
parent
aba843d20d
commit
ea502262b0
@ -85,4 +85,10 @@ CREATE INDEX on_options_key_IDX ON on_options ("key");
|
||||
7. 添加自定义footer
|
||||
8. 支持添加多种协议的链接
|
||||
9. 完成后台二级目录功能
|
||||
10. 修复category_list接口API调用不显示私有链接
|
||||
10. 修复category_list接口API调用不显示私有链接
|
||||
|
||||
20220423
|
||||
1. 新增环境检测
|
||||
2. 新增用户初始化设置界面
|
||||
3. 新增版本更新检查
|
||||
4. 修复未登录情况下不显示分类的BUG
|
||||
18
index.php
18
index.php
@ -3,6 +3,7 @@
|
||||
* name:入口文件
|
||||
*/
|
||||
error_reporting(E_ALL^E_NOTICE^E_WARNING^E_DEPRECATED);
|
||||
header("content-Type: text/html; charset=Utf-8");
|
||||
//获取控制器
|
||||
$c = @$_GET['c'];
|
||||
//进行过滤
|
||||
@ -10,23 +11,16 @@ $c = strip_tags($c);
|
||||
//读取版本号
|
||||
//$version = @file_get_contents("./functions/version.txt");
|
||||
//载入配置文件
|
||||
//如果配置文件不存在,则载入初始化文件
|
||||
if( !file_exists('./data/config.php') ) {
|
||||
echo "<p>正在准备安装,请稍等...</p>";
|
||||
//复制配置文件
|
||||
if ( copy('config.simple.php','data/config.php') ) {
|
||||
echo "安装完毕,默认用户名:xiaoz,密码:xiaoz.me,5s后跳转到登录页面。";
|
||||
//跳转到登录页面
|
||||
header("Refresh:5;url=/index.php?c=login");
|
||||
exit();
|
||||
} else{
|
||||
exit("<p>复制配置文件失败,请检查权限是否正常,或手动将站点目录下的config.simple.php复制为data/config.php</p>");
|
||||
}
|
||||
|
||||
include_once("controller/init.php");
|
||||
//exit('<h3>配置文件不存在,请将站点目录下的config.simple.php复制为data/config.php</h3>');
|
||||
}
|
||||
//检查数据库是否存在,不存在则复制数据库
|
||||
if( !file_exists('./data/onenav.db3') ) {
|
||||
copy('db/onenav.simple.db3','data/onenav.db3');
|
||||
if ( !copy('db/onenav.simple.db3','data/onenav.db3') ) {
|
||||
exit("数据库复制失败,请检查目录权限!");
|
||||
}
|
||||
// copy('db/.htaccess','data/.htaccess');
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user