diff --git a/admin/index.php b/admin/index.php
index 834e903..b15ed89 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -24,18 +24,12 @@ function tjsj($tjname) {
getver($conf['version'])) {
- echo '
';
- }
- if($update['msg']!='') {
- echo $update['msg'];
+ if($update['switch']) {
+ if($update['msg_switch'] && !empty($update['msg'])) {
+ echo '';
}
if(getver($update['version']) > getver($conf['version'])) {
- echo $update['update_msg'];
- }
- if($update['msg_switch'] == true || getver($update['version']) > getver($conf['version'])) {
- echo '
';
+ echo ''.$update['update_msg'].'
';
}
}
}
diff --git a/include/updbase.php b/include/updbase.php
index e6c9cee..fe806f5 100644
--- a/include/updbase.php
+++ b/include/updbase.php
@@ -37,6 +37,10 @@ if($sqlvn < 10109) {
$version = 'v1.1.9';
$sql = $sql.file_get_contents(ROOT.'install/update4.sql');
}
+if($sqlvn < 10200) {
+ $version = 'v1.2.0';
+ $sql = $sql.file_get_contents(ROOT.'install/update5.sql');
+}
$sql=explode(';',$sql);
for ($i=0;$i
\ No newline at end of file
diff --git a/install/install.sql b/install/install.sql
index 1f608f9..83dd39b 100644
--- a/install/install.sql
+++ b/install/install.sql
@@ -211,7 +211,7 @@ INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`) VALUES
(1, '主页', 'https://www.lylme.com/', 0),
(2, '博客', 'https://blog.lylme.com/', 1),
(3, 'Github', 'https://github.com/lylme', 1),
-(4, '关于', 'https://gitee.com/LyLme/lylme_spage/blob/master/README.md', 1),
+(4, '关于本站', '/about', 1),
(5, '申请收录', '/apply', 1);
ALTER TABLE `lylme_tags`
ADD PRIMARY KEY (`tag_id`);
diff --git a/install/update.sql b/install/update.sql
index 123fd1e..c7b5d83 100644
--- a/install/update.sql
+++ b/install/update.sql
@@ -38,7 +38,7 @@ INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`) VALUES
(1, '主页', 'https://www.lylme.com/', 0),
(2, '博客', 'https://blog.lylme.com/', 1),
(3, 'Github', 'https://github.com/lylme', 1),
-(4, '关于', 'https://gitee.com/LyLme/lylme_spage/blob/master/README.md', 1);
+(4, '关于本站', '/about', 1);
ALTER TABLE `lylme_tags`
ADD PRIMARY KEY (`tag_id`);
ALTER TABLE `lylme_tags`