Skip to content

Commit

Permalink
0.9.34
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed Jan 15, 2024
1 parent 7c95405 commit 998c10d
Show file tree
Hide file tree
Showing 11 changed files with 448 additions and 410 deletions.
17 changes: 16 additions & 1 deletion data/update.log
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,19 @@ CREATE INDEX on_options_key_IDX ON on_options ("key");

20231207
1. 新增技术支持按钮
2. 数据备份页面新增上传备份功能
2. 数据备份页面新增上传备份功能

20240109
1. 修复page参数注入问题
2. init控制器后端过滤username和password
3. imp_link方法只允许删除 .htm 或 .html 文件,避免任意文件删除

20240110
1. 新增辅助函数:check_all_cat() 用于判断分类是否全为私有,全私有则跳转到登录页
2. 升级LayUI版本至 v2.9.3
3. 修复主题有可用更新时,不显示更新提示的BUG
4. 修复baisuTwo主题右键复制无效的问题
5. 默认主题修改为默认隐藏链接描述

20240115
1. PC后台新增:分类数量/链接数量/PHP版本显示
23 changes: 23 additions & 0 deletions functions/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,27 @@ function getCurrentUrlDomain() {

return $domain;

}


/**
* name:检查分类是否全私有,如果是,则跳转到登录界面
*/
function check_all_cat(){
global $db;
// 统计所有分类的数量
$count = $db->count("on_categorys","*");
// 统计私有分类的数量
$count_private = $db->count("on_categorys","*",[
"property" => 1
]);
// 判断数量是否一致,一致则说明全部是私有
if( $count == $count_private ) {
// 判断用户是否登录,未登录则跳转
if( !is_login() ) {
header("Location:/index.php?c=login");
exit;
}

}
}
2 changes: 1 addition & 1 deletion static/layui/css/layui.css

Large diffs are not rendered by default.

Binary file modified static/layui/font/iconfont.eot
Binary file not shown.
810 changes: 405 additions & 405 deletions static/layui/font/iconfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/layui/font/iconfont.ttf
Binary file not shown.
Binary file modified static/layui/font/iconfont.woff
Binary file not shown.
Binary file modified static/layui/font/iconfont.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion static/layui/layui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/default/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"config": {
"full_width_mode":"off",
"link_description":"show",
"link_description":"hide",
"favicon": "online"
}
}
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.9.33-20231207
v0.9.34-20240115

0 comments on commit 998c10d

Please sign in to comment.