mirror of
https://github.com/LyLme/lylme_spage.git
synced 2024-11-17 22:38:03 +08:00
优化首页
This commit is contained in:
parent
b0abfc39b8
commit
98665bf298
@ -1,7 +1,14 @@
|
||||
<?php
|
||||
$title = '后台管理';
|
||||
include './head.php';
|
||||
$last = date("Ymdh");
|
||||
if(@file_get_contents('log.txt') != $last || !file_exists('cache.php')){
|
||||
$update = update();
|
||||
file_put_contents('log.txt',$last);
|
||||
var_export($update,true);
|
||||
$content = "<?php\nreturn ".var_export($update,true)."\n?>";
|
||||
file_put_contents('cache.php', $content);
|
||||
}
|
||||
$mysqlversion=$DB->count("select VERSION()");
|
||||
function tjsj($tjname) {
|
||||
if($tjname=='') {
|
||||
@ -15,6 +22,7 @@ function tjsj($tjname) {
|
||||
<main class="lyear-layout-content">
|
||||
<div class="container-fluid">
|
||||
<?php
|
||||
$update = require('cache.php');
|
||||
if(!empty($update)) {
|
||||
if($update['switch'] == true) {
|
||||
if($update['msg_switch'] == true || getver($update['version']) > getver($conf['version'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user