diff --git a/controller/index.php b/controller/index.php index 836b9d9..14b2807 100644 --- a/controller/index.php +++ b/controller/index.php @@ -118,5 +118,12 @@ else{ // 载入前台首页模板 -require('templates/'.TEMPLATE.'/index.php'); +//判断文件夹是否存在 +if( is_dir('templates/'.TEMPLATE) ){ + $tpl_dir = 'templates/'; +} +else{ + $tpl_dir = 'data/templates/'; +} +require($tpl_dir.TEMPLATE.'/index.php'); ?> \ No newline at end of file diff --git a/data/update.log b/data/update.log index 154b5dd..283fe1a 100644 --- a/data/update.log +++ b/data/update.log @@ -6,4 +6,20 @@ 1. 更改初始化数据库位置 2. 修复分类目录不按权重排序的问题 3. 书签导入 -4. 书签批量删除 \ No newline at end of file +4. 书签批量删除 + +20210412 +CREATE TABLE on_options ( + id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, + "key" TEXT(64) NOT NULL, + value TEXT, + extend TEXT +); + +CREATE INDEX on_options_id_IDX ON on_options (id,"key"); +CREATE INDEX on_options_key_IDX ON on_options ("key"); + +20210726 +1. 修复后台QQ群2 +2. 后台添加社区支持链接 +3. 修复默认主题顶部遮挡问题 \ No newline at end of file diff --git a/templates/admin/index.php b/templates/admin/index.php index f67666d..dc3a18a 100644 --- a/templates/admin/index.php +++ b/templates/admin/index.php @@ -14,7 +14,10 @@