mirror of
https://github.com/LyLme/lylme_spage.git
synced 2024-11-17 14:34:08 +08:00
更新 v1.2.0版本
This commit is contained in:
parent
ea0a8d04a5
commit
3a18d4fdc8
@ -24,18 +24,12 @@ function tjsj($tjname) {
|
||||
<?php
|
||||
$update = require('cache.php');
|
||||
if(!empty($update)) {
|
||||
if($update['switch'] == true) {
|
||||
if($update['msg_switch'] == true || getver($update['version']) > getver($conf['version'])) {
|
||||
echo ' <div class="card"><div class="card-header"><h4>'.$update['title'].'</h4></div><ul class="list-group">';
|
||||
}
|
||||
if($update['msg']!='') {
|
||||
echo $update['msg'];
|
||||
if($update['switch']) {
|
||||
if($update['msg_switch'] && !empty($update['msg'])) {
|
||||
echo '<div class="card"><div class="card-header"><h4>'.$update['title'].'</h4></div><ul class="list-group">'.$update['msg'].'</ul></div>';
|
||||
}
|
||||
if(getver($update['version']) > getver($conf['version'])) {
|
||||
echo $update['update_msg'];
|
||||
}
|
||||
if($update['msg_switch'] == true || getver($update['version']) > getver($conf['version'])) {
|
||||
echo '</ul></div>';
|
||||
echo '<div class="card"><div class="card-header"><h4>更新提示</h4></div><ul class="list-group">'.$update['update_msg'].'</ul></div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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<count($sql);$i++) {
|
||||
if (trim($sql[$i])=='')continue;
|
||||
|
@ -1,3 +1,3 @@
|
||||
<?php
|
||||
define('VERSION', '1.1.9');
|
||||
define('VERSION', '1.2.0');
|
||||
?>
|
@ -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`);
|
||||
|
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user