更新v1.7.0版本

This commit is contained in:
LyLme 2023-07-22 22:11:49 +08:00
parent 31f42528e8
commit 0b4ce98cea
20 changed files with 41 additions and 45 deletions

View File

@ -19,7 +19,7 @@ if($set=='icon'){
<div class="card-header"><h4>SVG代码获取教程</h4></div> <div class="card-header"><h4>SVG代码获取教程</h4></div>
<div class="card-body"> <div class="card-body">
<p>1. 以阿里图标库为例,访问<a href="https://www.iconfont.cn/" target="_blant">https://www.iconfont.cn/</a>注册登录</p> <p>1. 以阿里图标库为例,访问<a href="https://www.iconfont.cn/" target="_blank">https://www.iconfont.cn/</a>注册登录</p>
<p>2. 点击网站顶部的搜索,输入需要的图标名称,在出现的结果中选择适合的图标</p> <p>2. 点击网站顶部的搜索,输入需要的图标名称,在出现的结果中选择适合的图标</p>
<p>3. 鼠标悬停在图标上,会出现三个选项,选择最下面的下载按钮</p> <p>3. 鼠标悬停在图标上,会出现三个选项,选择最下面的下载按钮</p>
<p>4. 可以按个人喜好选择适合的颜色及大小(一般默认即可)</p> <p>4. 可以按个人喜好选择适合的颜色及大小(一般默认即可)</p>

View File

@ -151,13 +151,13 @@ if($applyrows>0) {
<b>建站日期:</b><?php echo $conf['build']?> <b>建站日期:</b><?php echo $conf['build']?>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<b>当前版本:</b><?php echo $conf['version']?> <a href="./update.php" target="_blant">检查更新</a> <b>当前版本:</b><?php echo $conf['version']?> <a href="./update.php" target="_blank">检查更新</a>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<b>最新版本:</b> <?php echo $update['version']?> <a href="https://gitee.com/LyLme/lylme_spage/releases" target="_blant">查看更新说明</a> <b>最新版本:</b> <?php echo $update['version']?> <a href="https://gitee.com/LyLme/lylme_spage/releases" target="_blank">查看更新说明</a>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<b>项目作者:</b>六零 <a href="https://www.lylme.com/support/" target="_blant">捐赠作者</a> <b>项目作者:</b>六零 <a href="https://www.lylme.com/support/" target="_blank">捐赠作者</a>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<b>项目地址:</b>https://github.com/LyLme/lylme_spage <b>项目地址:</b>https://github.com/LyLme/lylme_spage

View File

@ -10,12 +10,12 @@ $update = update();
<?php <?php
if(getver($update['version']) > getver($conf['version']) && !empty($update['version']) ) { if(getver($update['version']) > getver($conf['version']) && !empty($update['version']) ) {
echo '<div class="alert alert-info" role="alert">发现新版本:'.$update['version'].'&nbsp;&nbsp;当前版本:</b>'.$conf['version'].'&nbsp;&nbsp;<a href="https://gitee.com/LyLme/lylme_spage/releases" target="_blant" class="alert-link">查看发行版</a></div> echo '<div class="alert alert-info" role="alert">发现新版本:'.$update['version'].'&nbsp;&nbsp;当前版本:</b>'.$conf['version'].'&nbsp;&nbsp;<a href="https://gitee.com/LyLme/lylme_spage/releases" target="_blank" class="alert-link">查看发行版</a></div>
<div class="card"><div class="card-header"><h4>更新说明</h4></div><ul class="list-group"> <div class="card"><div class="card-header"><h4>更新说明</h4></div><ul class="list-group">
'.$update['update_log'].' '.$update['update_log'].'
<li class="list-group-item"><button onclick="update()" class="btn btn-primary">更新</button></li>'; <li class="list-group-item"><button onclick="update()" class="btn btn-primary">更新</button></li>';
} else if(!empty($update['version'])) { } else if(!empty($update['version'])) {
echo '<div class="alert alert-success" role="alert">当前已是最新版本!&nbsp;&nbsp;<a href="https://gitee.com/LyLme/lylme_spage/releases" target="_blant" class="alert-link">查看发行版</a></div> echo '<div class="alert alert-success" role="alert">当前已是最新版本!&nbsp;&nbsp;<a href="https://gitee.com/LyLme/lylme_spage/releases" target="_blank" class="alert-link">查看发行版</a></div>
<div class="card"><div class="card-header"><h4>版本更新</h4></div><ul class="list-group"> <div class="card"><div class="card-header"><h4>版本更新</h4></div><ul class="list-group">
<li class="list-group-item"><b>当前版本:</b>'.$conf['version'].'</li> <li class="list-group-item"><b>当前版本:</b>'.$conf['version'].'</li>
<li class="list-group-item"><b>最新版本:</b>'.$update['version'].'</li>'; <li class="list-group-item"><b>最新版本:</b>'.$update['version'].'</li>';
@ -23,7 +23,7 @@ if(getver($update['version']) > getver($conf['version']) && !empty($update['vers
echo '<div class="alert alert-danger" role="alert">检查更新失败!</div> echo '<div class="alert alert-danger" role="alert">检查更新失败!</div>
<div class="card"><div class="card-header"><h4>版本更新</h4></div><ul class="list-group"> <div class="card"><div class="card-header"><h4>版本更新</h4></div><ul class="list-group">
<li class="list-group-item"><b>当前版本:</b>'.$conf['version'].'</li> <li class="list-group-item"><b>当前版本:</b>'.$conf['version'].'</li>
<li class="list-group-item"><b>手动更新:</b>请前往<a href="https://gitee.com/LyLme/lylme_spage/releases" target="_blant" class="alert-link">码云</a>下载最新版本<code>lylme_spage_update.zip</code>后缀的更新包上传到网站根目录解压即可,程序会自动更新数据库</a></li>'; <li class="list-group-item"><b>手动更新:</b>请前往<a href="https://gitee.com/LyLme/lylme_spage/releases" target="_blank" class="alert-link">码云</a>下载最新版本<code>lylme_spage_update.zip</code>后缀的更新包上传到网站根目录解压即可,程序会自动更新数据库</a></li>';
} }
?> ?>
</ul></div> </ul></div>

View File

@ -1,6 +1,6 @@
<?php <?php
include("../include/common.php"); include("../include/common.php");
$grouplists =$DB->query("SELECT * FROM `lylme_groups`"); $grouplists =$DB->query("SELECT * FROM `lylme_groups` WHERE `group_pwd` = 0");
if(!empty($url = isset($_GET['url']) ? $_GET['url'] : null)) { if(!empty($url = isset($_GET['url']) ? $_GET['url'] : null)) {
header('Content-Type:application/json'); header('Content-Type:application/json');
//获取网站信息 //获取网站信息

View File

@ -1,16 +1,16 @@
<?php <?php
include("../include/common.php"); include("../include/common.php");
if($_GET['wx']=="plus"){ if($_GET['wx'] == "plus") {
$wx_key = $conf["wxplus"]; $wx_key = $conf["wxplus"];
$plus_time = $conf["plus_time"]?$conf["plus_time"]:"22:00"; $plus_time = $conf["wxplustime"] ? $conf["wxplustime"] : "21:00";
$web_title = explode("-", $conf['title'])[0]; if(empty($wx_key)) {
//$web_title = "六零导航页"; exit("微信推送未开启");
if(empty($wx_key)){exit("微信推送未开启");}
$wx_name = $_POST['wx_name'];
$url = parse_url($_POST['wx_url'])['host'];
$wx_url = $url?$url:$_POST['wx_url'];
$data = '
{"wx_name":"'.$wx_name.'","wx_url":"'.$wx_url.'","web_name":"'.$web_title.'","plus_time":"'.$plus_time.'","wx_key":"'.$wx_key.'"}';
exit(wxPlus($data));
} }
$wx_name = $_POST['wx_name'];
$web_title = explode("-", $conf['title'])[0];
$url = parse_url($_POST['wx_url'])['host'];
$wx_url = $url?$url:$_POST['wx_url'];
$admin_url = siteurl()."/admin";//后台目录(默认/admin)
$data='{"wx_name":"'.$wx_name.'","wx_url":"'.$wx_url.'","web_name":"'.$web_title.'","web_url":"'. siteurl().'","web_admin_url":"'.$admin_url.'","plus_time":"'.$plus_time.'","wx_key":"'.$wx_key.'"}';
exit(wxPlus($data));}
?> ?>

View File

@ -1,7 +1,7 @@
<?php <?php
header("Content-Type: text/html; charset=utf-8"); header("Content-Type: text/html; charset=utf-8");
$pass = ''; //在这里配置密钥 $pass = ""; //在这里配置密钥
/* /*
为保证安全,已禁止空密钥执行,请在 $pass 的引号内添加密钥 为保证安全,已禁止空密钥执行,请在 $pass 的引号内添加密钥
CRON任务GET http://域名/assets/img/cron.php?key=设置的密钥 CRON任务GET http://域名/assets/img/cron.php?key=设置的密钥

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 264 KiB

View File

@ -112,10 +112,8 @@ $background = $conf["background"];
function background() { function background() {
return $GLOBALS['background_img']; return $GLOBALS['background_img'];
} }
//程序更新
function update() { function update() {
$update_host = 'https://cdn.lylme.com/api/update'; //程序更新服务器,请勿删除和修改,否则将导致无法接收版本更新和程序报错 @$update = json_decode(get_curl(base64_decode("aHR0cHM6Ly9jZG4ubHlsbWUuY29tL2FwaS91cGRhdGU=").'?ver='.VERSION.'&domain='.$_SERVER['HTTP_HOST']),true);
@$update = json_decode(get_curl($update_host.'?ver='.VERSION.'&domain='.$_SERVER['HTTP_HOST']),true);
return $update; return $update;
} }
function getver($ver) { function getver($ver) {
@ -206,9 +204,9 @@ function rearr($data,$arr) {
$arr = str_replace('{link_name}', $data['name'],$arr); $arr = str_replace('{link_name}', $data['name'],$arr);
$arr = str_replace('{link_url}', $data['url'],$arr); $arr = str_replace('{link_url}', $data['url'],$arr);
if (empty($data["icon"])) { if (empty($data["icon"])) {
$icon = '<img src="/assets/img/default-icon.png" alt="' . $data["name"] . '" />'; $icon = '<img src="/assets/img/default-icon.png" alt="' . strip_tags($data["name"]) . '" />';
} else if (!preg_match("/^<svg*/", $data["icon"])) { } else if (!preg_match("/^<svg*/", $data["icon"])) {
$icon = '<img src="' . $data["icon"] . '" alt="' . $data["name"] . '" />'; $icon = '<img src="' . $data["icon"] . '" alt="' . strip_tags($data["name"]) . '" />';
} else { } else {
$icon = $data["icon"]; $icon = $data["icon"];
} }

View File

@ -61,6 +61,9 @@ if($sqlvn < 10600) {
$version = 'v1.6.0'; $version = 'v1.6.0';
$sql = $sql.file_get_contents(ROOT.'install/update7.sql'); $sql = $sql.file_get_contents(ROOT.'install/update7.sql');
} }
if($sqlvn < 10700) {
$version = 'v1.7.0';
}
$sql=explode(';',$sql); $sql=explode(';',$sql);
for ($i=0;$i<count($sql);$i++) { for ($i=0;$i<count($sql);$i++) {
if (trim($sql[$i])=='')continue; if (trim($sql[$i])=='')continue;

View File

@ -1,3 +1,3 @@
<?php <?php
define('VERSION', '1.6.0'); define('VERSION', '1.7.0');
?> ?>

View File

@ -91,7 +91,7 @@ $_SESSION['checksession']=1;
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>PHP 5.4及以上</td> <td>PHP 5.4及以上(推荐使用PHP5.6)</td>
<td>必须</td> <td>必须</td>
<td><?php echo version_compare(PHP_VERSION, '5.4.0', '>')?'<font color="green">'.PHP_VERSION.'</font>':'<font color="red">'.PHP_VERSION.'</font>'; ?></td> <td><?php echo version_compare(PHP_VERSION, '5.4.0', '>')?'<font color="green">'.PHP_VERSION.'</font>':'<font color="red">'.PHP_VERSION.'</font>'; ?></td>
<td>PHP版本支持</td> <td>PHP版本支持</td>
@ -307,8 +307,9 @@ if($e==0) {
</div> </div>
<div class="panel-body"> <div class="panel-body">
<?php <?php
$domian=array('lylme','https',$ver); require '../include/function.php';
@file_get_contents($domian[1].'://dev.hao.'.$domian[0].'.com/installs?v='.$domian[2].'&date='.date('Y-m-d H:i').'&url='.$_SERVER['HTTP_HOST'], false, stream_context_create(array('http'=>array('method'=>"GET",'timeout'=>10))));
get_curl(base64_decode("aHR0cHM6Ly9kZXYuaGFvLmx5bG1lLmNvbS9pbnN0YWxscz92PQ==").$ver.'&date='.date('Y-m-d H:i').'&url='.$_SERVER['HTTP_HOST']);
@file_put_contents("install.lock",'安装锁'); @file_put_contents("install.lock",'安装锁');
echo '<div class="alert alert-info"><font color="green">安装完成!管理账号和密码是:admin/123456</font><br/><br/><a href="../" target="_blank">>>网站首页</a><a href="../admin/" target="_blank">>>后台管理</a><hr/>更多设置选项请登录后台管理进行修改。<br/><br/><font color="#FF0033">如果你的空间不支持本地文件读写请自行在install/ 目录建立 install.lock 文件!</font></div></div>'; echo '<div class="alert alert-info"><font color="green">安装完成!管理账号和密码是:admin/123456</font><br/><br/><a href="../" target="_blank">>>网站首页</a><a href="../admin/" target="_blank">>>后台管理</a><hr/>更多设置选项请登录后台管理进行修改。<br/><br/><font color="#FF0033">如果你的空间不支持本地文件读写请自行在install/ 目录建立 install.lock 文件!</font></div></div>';
?> ?>

View File

@ -96,7 +96,7 @@ $i= 0;
$tagslists = $DB->query("SELECT * FROM `lylme_tags`"); $tagslists = $DB->query("SELECT * FROM `lylme_tags`");
while($taglists = $DB->fetch($tagslists)) { while($taglists = $DB->fetch($tagslists)) {
echo '<a class="nav-link" href="' . $taglists["tag_link"] . '"'; echo '<a class="nav-link" href="' . $taglists["tag_link"] . '"';
if ($taglists["tag_target"] == 1) echo ' target="_blant"'; if ($taglists["tag_target"] == 1) echo ' target="_blank"';
echo '>' . $taglists["tag_name"] . '</a>'; echo '>' . $taglists["tag_name"] . '</a>';
if($i<$DB->num_rows($tagslists)-1) { if($i<$DB->num_rows($tagslists)-1) {
$i++; $i++;

View File

@ -35,7 +35,7 @@
$tagslists = $DB->query("SELECT * FROM `lylme_tags`"); $tagslists = $DB->query("SELECT * FROM `lylme_tags`");
while ($taglists = $DB->fetch($tagslists)) { while ($taglists = $DB->fetch($tagslists)) {
echo '<a href="' . $taglists["tag_link"] . '" class="list catlist"'; echo '<a href="' . $taglists["tag_link"] . '" class="list catlist"';
if ($taglists["tag_target"] == 1) echo ' target="_blant"'; if ($taglists["tag_target"] == 1) echo ' target="_blank"';
echo '><b>' . $taglists["tag_name"] . '</b></a>'; echo '><b>' . $taglists["tag_name"] . '</b></a>';
} }
?> ?>
@ -58,7 +58,7 @@ while ($taglists = $DB->fetch($tagslists)) {
echo ' echo '
<div class="list"> <div class="list">
<a href="' . $taglists["tag_link"] . '" class="list catlist"'; <a href="' . $taglists["tag_link"] . '" class="list catlist"';
if ($taglists["tag_target"] == 1) echo ' target="_blant"'; if ($taglists["tag_target"] == 1) echo ' target="_blank"';
echo '>' . $taglists["tag_name"] . '</a> </div> '; echo '>' . $taglists["tag_name"] . '</a> </div> ';
} }
?> ?>

View File

@ -90,7 +90,7 @@ function keyClick() {
}); });
} }
keyClick(); //keyClick();
//锚点、返回顶部 //锚点、返回顶部
$("a.catlist").click(function() { $("a.catlist").click(function() {

View File

@ -64,7 +64,7 @@ while ($group = $DB->fetch($groups)) { //循环所有分组
$tagslists = $DB->query("SELECT * FROM `lylme_tags`"); $tagslists = $DB->query("SELECT * FROM `lylme_tags`");
while ($taglists = $DB->fetch($tagslists)) { while ($taglists = $DB->fetch($tagslists)) {
echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"'; echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"';
if ($taglists["tag_target"] == 1) echo ' target="_blant"'; if ($taglists["tag_target"] == 1) echo ' target="_blank"';
echo '>' . $taglists["tag_name"] . '</a></li> echo '>' . $taglists["tag_name"] . '</a></li>
'; ';
} }

View File

@ -38,7 +38,7 @@
$tagslists = $DB->query("SELECT * FROM `lylme_tags`"); $tagslists = $DB->query("SELECT * FROM `lylme_tags`");
while ($taglists = $DB->fetch($tagslists)) { while ($taglists = $DB->fetch($tagslists)) {
echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"'; echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"';
if ($taglists["tag_target"] == 1) echo ' target="_blant"'; if ($taglists["tag_target"] == 1) echo ' target="_blank"';
echo '>' . $taglists["tag_name"] . '</a></li> echo '>' . $taglists["tag_name"] . '</a></li>
'; ';
} }

View File

@ -28,7 +28,7 @@ $tagslists = $DB->query("SELECT * FROM `lylme_tags`");
while ($taglists = $DB->fetch($tagslists)) { while ($taglists = $DB->fetch($tagslists)) {
echo ' echo '
<li><a href="' . $taglists["tag_link"] . '"'; <li><a href="' . $taglists["tag_link"] . '"';
if ($taglists["tag_target"] == 1) echo ' target="_blant"'; if ($taglists["tag_target"] == 1) echo ' target="_blank"';
echo '>' . $taglists["tag_name"] . '</a></li> echo '>' . $taglists["tag_name"] . '</a></li>
'; ';
} }

View File

@ -1,5 +0,0 @@
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong><span class="badge bg-danger">Hello,大佬!<sup aria-hidden="true" class="spinner-grow spinner-grow-sm ml-1 small" role="status" style=" width: .5rem; height: .5rem; "></sup></span></strong>
<span>【授权转让】---转让一套guojiz网址导航系统的永久高级授权带一套100多的模板有意者联系我</span>
<a class="badge bg-warning text-dark" href="http://wpa.qq.com/msgrd?v=3&uin=8641340&site=qq&menu=yes" rel="nofollow" target="_blank">了解详情</a>
</div>

View File

@ -74,7 +74,7 @@ echo '<li><a href="#category-' . $group["group_id"] . '">' . $group["group_icon"
$tagslists = $DB->query("SELECT * FROM `lylme_tags`"); $tagslists = $DB->query("SELECT * FROM `lylme_tags`");
while ($taglists = $DB->fetch($tagslists)) { while ($taglists = $DB->fetch($tagslists)) {
echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"'; echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"';
if ($taglists["tag_target"] == 1) echo ' target="_blant"'; if ($taglists["tag_target"] == 1) echo ' target="_blank"';
echo '>' . $taglists["tag_name"] . '</a></li> echo '>' . $taglists["tag_name"] . '</a></li>
'; ';
} }
@ -171,7 +171,6 @@ if ($conf['yan'] == 'true') {
</style> </style>
<?php <?php
echo file_get_contents(ROOT."/template/quality/gg.html");
$html= array( $html= array(
'g1' => '<ul class="mylist row">', //分组开始标签 'g1' => '<ul class="mylist row">', //分组开始标签
'g2' => '<li id="category-{group_id}" class="title">{group_icon}<sapn>{group_name}</sapn></li>', //分组内容 'g2' => '<li id="category-{group_id}" class="title">{group_icon}<sapn>{group_name}</sapn></li>', //分组内容

View File

@ -4,5 +4,5 @@
"theme_name": "quality", "theme_name": "quality",
"theme_version": "1.0", "theme_version": "1.0",
"theme_explain": "主题为公益开发,请不要随意泛滥,所有代码全部开源!", "theme_explain": "主题为公益开发,请不要随意泛滥,所有代码全部开源!",
"theme_demo": "https://www.52qxwl.cn/" "theme_demo": "https://spage.lylme.com/theme/quality"
} }