Merge branch 'master' into docker

This commit is contained in:
LyLme 2024-01-09 17:24:40 +08:00
commit 6eef7ad309
28 changed files with 2041 additions and 1080 deletions

View File

@ -1,24 +0,0 @@
<h3>关于本站</h3>
<p>感谢来访,本站致力于简洁高效的上网导航和搜索入口,安全快捷。</p>
<p>如果您喜欢我们的网站,请将本站添加到收藏夹(快捷键<code>Ctrl+D</code>),并<a href="https://jingyan.baidu.com/article/4dc40848868eba89d946f1c0.html" target="_blank">设为浏览器主页</a>,方便您的下次访问,感谢支持。<p>
<hr>
<h3>本站承诺</h3>
<p><strong>绝对不会收集用户的隐私信息</strong><p>
<p>区别于部分导航网站,本站链接直接跳转目标,不会对链接处理再后跳转,不会收集用户的隐藏信息,包括但不限于点击记录,访问记录和搜索记录,请放心使用</p>
<hr>
<h3>申请收录</h3>
<p>请点<a href="../apply" target="_blank">这里</a></p>
<hr>
<h3>联系我们</h3>
<p>若您在使用本站时遇到了包括但不限于以下问题:</p>
<li>图标缺失</li>
<li>目标网站无法打开</li>
<li>描述错误</li>
<li>网站违规</li>
<li>收录加急处理</li>
<li>链接删除</li>
<p><strong>请发邮件与我们联系</strong></p>
<h5>联系邮箱</h5>
<p><a href="mailto:未配置邮箱">未配置邮箱</a></p>
<h5>联系说明</h5>
<p>为了您的问题能快速被处理,建议在邮件主题添加【反馈】【投诉】【推荐】【友链】</p>

View File

@ -1,32 +1,41 @@
<?php include("../include/common.php"); ?> <?php include("../include/common.php"); ?>
<html lang="zh-cn"> <html lang="zh-cn">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>关于 - <?php echo explode("-", $conf['title'])[0]; ?></title> <title>关于 - <?php echo explode("-", $conf['title'])[0]; ?></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/docsify/4.12.2/themes/vue.min.css" type="text/css" rel="stylesheet"> <link href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/docsify/4.12.2/themes/vue.min.css" type="text/css" rel="stylesheet">
<style>body:not(.ready){overflow:auto!important}#main{max-width:90%}p.footer{margin-top:60px}p.footer a{text-decoration:none}</style> <style>
body:not(.ready) {
overflow: auto !important
}
#main {
max-width: 90%
}
p.footer {
margin-top: 60px
}
p.footer a {
text-decoration: none
}
</style>
</head> </head>
<body> <body>
<div class="markdown-section" id="main"> <div class="markdown-section" id="main">
<?php <?php
$about = 'about.txt'; echo($conf['about_content']);
//本页内容请修改about.txt文件防止更新后index.php文件被覆盖
if(file_exists($about)){
//文件存在,直接输出文件内容
echo file_get_contents($about);
}
else {
//文件不存在
@file_put_contents($about,'<h1>404</h1>');
echo file_get_contents($about);
}
?> ?>
<center>
<center><p class="footer"><?php echo $conf['copyright']?></p></center> <p class="footer"><?php echo $conf['copyright'] ?></p>
</center>
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,34 +0,0 @@
请勿删除 about.txt 文件,该文件存放网站关于页面的内容
如需修改关于本站的内容请修改about.txt文件防止更新后index.php文件被覆盖
该文件使用HTML语言编写 若您不了解html语言可使用在线生成
html生成https://www.lylme.com/html
默认内容如下:
<h3>关于本站</h3>
<p>感谢来访,本站致力于简洁高效的上网导航和搜索入口,安全快捷。</p>
<p>如果您喜欢我们的网站,请将本站添加到收藏夹(快捷键<code>Ctrl+D</code>),并<a href="https://jingyan.baidu.com/article/4dc40848868eba89d946f1c0.html" target="_blank">设为浏览器主页</a>,方便您的下次访问,感谢支持。<p>
<hr>
<h3>本站承诺</h3>
<p><strong>绝对不会收集用户的隐私信息</strong><p>
<p>区别于部分导航网站,本站链接直接跳转目标,不会对链接处理再后跳转,不会收集用户的隐藏信息,包括但不限于点击记录,访问记录和搜索记录,请放心使用</p>
<hr>
<h3>申请收录</h3>
<p>请点<a href="../apply" target="_blank">这里</a></p>
<hr>
<h3>联系我们</h3>
<p>若您在使用本站时遇到了包括但不限于以下问题:</p>
<li>图标缺失</li>
<li>目标网站无法打开</li>
<li>描述错误</li>
<li>网站违规</li>
<li>收录加急处理</li>
<li>链接删除</li>
<p><strong>请发邮件与我们联系</strong></p>
<h5>联系邮箱</h5>
<p><a href="mailto:未配置邮箱">未配置邮箱</a></p>
<h5>联系说明</h5>
<p>为了您的问题能快速被处理,建议在邮件主题添加【反馈】【投诉】【推荐】【友链】</p>

52
www/admin/about.php Normal file
View File

@ -0,0 +1,52 @@
<?php
$title = '关于页面设置';
include './head.php';
if ($_GET['set'] == 'conf_submit') {
$about = $_POST['about'];
saveSetting('about_content', $about);
echo '<script>alert("修改成功!");window.location.href="./about.php";</script>';
exit();
}
if ($_GET['set'] == 'default') {
saveSetting('about_content', "<h3>关于本站</h3>\r\n<p>感谢来访,本站致力于简洁高效的上网导航和搜索入口,安全快捷。</p>\r\n<p>如果您喜欢我们的网站,请将本站添加到收藏夹(快捷键<code>Ctrl+D</code>),并<a href=\"https://jingyan.baidu.com/article/4dc40848868eba89d946f1c0.html\" target=\"_blank\">设为浏览器主页</a>,方便您的下次访问,感谢支持。<p>\r\n<hr>\r\n<h3>本站承诺</h3>\r\n<p><strong>绝对不会收集用户的隐私信息</strong><p>\r\n<p>区别于部分导航网站,本站链接直接跳转目标,不会对链接处理再后跳转,不会收集用户的隐藏信息,包括但不限于点击记录,访问记录和搜索记录,请放心使用</p>\r\n<hr>\r\n<h3>申请收录</h3>\r\n<p>请点<a href=\"../apply\" target=\"_blank\">这里</a></p>\r\n<hr>\r\n<h3>联系我们</h3>\r\n<p>若您在使用本站时遇到了包括但不限于以下问题:</p>\r\n<li>图标缺失</li>\r\n<li>目标网站无法打开</li>\r\n<li>描述错误</li>\r\n<li>网站违规</li>\r\n<li>收录加急处理</li>\r\n<li>链接删除</li>\r\n<p><strong>请发邮件与我们联系</strong></p>\r\n<h5>联系邮箱</h5>\r\n<p><a href=\"mailto:无\">无</a></p>\r\n<h5>联系说明</h5>\r\n<p>为了您的问题能快速被处理,建议在邮件主题添加【反馈】【投诉】【推荐】【友链】</p>");
echo '<script>alert("恢复默认成功!");window.location.href="./about.php";</script>';
exit();
}
?>
<main class="lyear-layout-content">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h4>修改收录设置</h4>
<div class="panel-body">
<form action="./about.php?set=conf_submit" method="POST">
<div class="form-group" id="about">
<label class="btn-block" for="web_yan_status">关于页面地址</label>
<p><code><?php echo siteurl() ?>/about</code></p>
<a class="btn btn-cyan" href="<?php echo siteurl() ?>/about" target="_blank">访问关于页面</a>
<a class="btn btn-danger" href="./about.php?set=default" onclick="return confirm('确定将关于页面内容恢复默认?\n注意:该操作不可逆');">恢复默认内容</a>
</div>
<div class="form-group">
<label for="about">关于页内容</label>
<textarea width="200px" type="text" rows="20" class="form-control" name="about" placeholder="显示在关于页面的内容"><?php echo($conf['about_content']); ?></textarea>
<small class="help-block">显示在关于页面的内容<code>使用HTML代码编写</code></small>
工具:<a href="https://www.lylme.com/html/" target="_blank">在线MD编辑器</a> 编辑后复制html代码粘贴
</div>
<div class="form-about">
<input type="submit" class="btn btn-primary btn-block" value="保存">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<?php
include './footer.php';
?>

View File

@ -1,7 +1,9 @@
<?php <?php
include_once("../include/common.php"); include_once("../include/common.php");
if(isset($islogin) == 1) { if(isset($islogin) == 1) {
} else exit("<script language='javascript'>window.location.href='./login.php';</script>"); } else {
exit("<script language='javascript'>window.location.href='./login.php';</script>");
}
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh-CN"> <html lang="zh-CN">
@ -31,13 +33,12 @@ if(isset($islogin)==1) {
<a href="javascript:void(0)"><i class="mdi mdi-palette"></i>网站配置</a> <a href="javascript:void(0)"><i class="mdi mdi-palette"></i>网站配置</a>
<ul class="nav nav-subnav"> <ul class="nav nav-subnav">
<li> <a href="./set.php">网站基本设置</a> </li> <li> <a href="./set.php">网站基本设置</a> </li>
<li> <a href="./tag.php">导航菜单设置</a> </li> <li> <a href="./theme.php">网站主题设置</a> </li>
<li> <a href="./sou.php">搜索引擎设置</a> </li> <li> <a href="./about.php">关于页面设置</a> </li>
<li> <a href="./user.php">修改账号密码</a> </li> <li> <a href="./user.php">修改账号密码</a> </li>
</ul> </ul>
</li> </li>
<li class="nav-item active"> <a href="./theme.php"><i class="mdi mdi-invert-colors"></i>主题设置</a> </li>
<li class="nav-item active"> <a href="./apply.php"><i class="mdi mdi-link"></i>收录管理 </a> <li class="nav-item active"> <a href="./apply.php"><i class="mdi mdi-link"></i>收录管理 </a>
<?php $applyrows = $DB->num_rows($DB->query("SELECT * FROM `lylme_apply` WHERE `apply_status` = 0")); <?php $applyrows = $DB->num_rows($DB->query("SELECT * FROM `lylme_apply` WHERE `apply_status` = 0"));
if($applyrows > 0) { if($applyrows > 0) {
@ -48,6 +49,8 @@ if($applyrows>0) {
<li class="nav-item nav-item-has-subnav"> <li class="nav-item nav-item-has-subnav">
<li class="nav-item active"> <a href="./group.php"><i class="mdi mdi-folder"></i>分组管理</a></li> <li class="nav-item active"> <a href="./group.php"><i class="mdi mdi-folder"></i>分组管理</a></li>
<li class="nav-item active"> <a href="./link.php"><i class="mdi mdi-web"></i>链接管理</a></li> <li class="nav-item active"> <a href="./link.php"><i class="mdi mdi-web"></i>链接管理</a></li>
<li class="nav-item active"> <a href="./tag.php"><i class="mdi mdi-cube"></i>导航菜单</a></li>
<li class="nav-item active"> <a href="./sou.php"><i class="mdi mdi-magnify"></i>搜索引擎</a></li>
<li class="nav-item active"> <a href="./pwd.php"><i class="mdi mdi-key-variant"></i>加密管理</a></li> <li class="nav-item active"> <a href="./pwd.php"><i class="mdi mdi-key-variant"></i>加密管理</a></li>
<li class="nav-item active"> <a href="./update.php"><i class="mdi mdi-update"></i>检查更新</a> </li> <li class="nav-item active"> <a href="./update.php"><i class="mdi mdi-update"></i>检查更新</a> </li>
<li class="nav-item active"> <a href="./wxplus.php"><i class="mdi mdi-wechat"></i>微信推送</a> </li> <li class="nav-item active"> <a href="./wxplus.php"><i class="mdi mdi-wechat"></i>微信推送</a> </li>

View File

@ -9,8 +9,8 @@ var_export($update,true);
$content = "<?php\nreturn " . var_export($update, true) . "\n?>"; $content = "<?php\nreturn " . var_export($update, true) . "\n?>";
file_put_contents('cache.php', $content); file_put_contents('cache.php', $content);
} }
$mysqlversion=$DB->count("select VERSION()"); function tjsj($tjname)
function tjsj($tjname) { {
if ($tjname == '') { if ($tjname == '') {
echo '0'; echo '0';
} else { } else {
@ -139,7 +139,7 @@ if($applyrows>0) {
?> ?>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<b>MySQL 版本:</b><?php echo $mysqlversion ?> <b>MySQL 版本:</b><?php echo $DB->count("select VERSION()") ?>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<b>服务器软件:</b><?php echo $_SERVER['SERVER_SOFTWARE'] ?> <b>服务器软件:</b><?php echo $_SERVER['SERVER_SOFTWARE'] ?>
@ -147,6 +147,10 @@ if($applyrows>0) {
<li class="list-group-item"> <li class="list-group-item">
<b>程序名称:</b>六零导航页(LyLme Spage) <b>程序名称:</b>六零导航页(LyLme Spage)
</li> </li>
<li class="list-group-item">
<b>授权状态:</b>
<a href="https://www.lylme.com/spage/" target="_blank">查询</a>
</li>
<li class="list-group-item"> <li class="list-group-item">
<b>建站日期:</b><?php echo $conf['build'] ?> <b>建站日期:</b><?php echo $conf['build'] ?>
</li> </li>
@ -154,13 +158,13 @@ if($applyrows>0) {
<b>当前版本:</b><?php echo $conf['version'] ?> <a href="./update.php" target="_blank">检查更新</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="_blank">查看更新说明</a> <b>最新版本:</b> <?php echo $update['version'] ?> <a href="https://doc.lylme.com/spage/#/logs 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="_blank">捐赠作者</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><a href="https://github.com/LyLme/lylme_spage" target="_blank">https://github.com/LyLme/lylme_spage</a>
</li> </li>
</ul> </ul>
</div> </div>
@ -179,7 +183,7 @@ $(document).ready(function(e) {
var $dashChartBarsCnt = jQuery('.js-chartjs-bars')[0].getContext('2d'), var $dashChartBarsCnt = jQuery('.js-chartjs-bars')[0].getContext('2d'),
$dashChartLinesCnt = jQuery('.js-chartjs-lines')[0].getContext('2d'); $dashChartLinesCnt = jQuery('.js-chartjs-lines')[0].getContext('2d');
var $dashChartBarsData = { var $dashChartBarsData = {
labels: ['今日浏览', '昨日浏览', '本月浏览', '总浏览', '链接数', '分组数'], labels: ['今日浏览', '昨日浏览', '本月浏览', '总浏览'],
datasets: [{ datasets: [{
label: '数量', label: '数量',
borderWidth: 1, borderWidth: 1,
@ -191,43 +195,32 @@ $(document).ready(function(e) {
?>, <?php echo $tjyesterday; ?>, <?php echo $tjyesterday;
?>, <?php echo $tjmonth; ?>, <?php echo $tjmonth;
?>, <?php echo $tjtotal; ?>, <?php echo $tjtotal;
?>, <?php echo $linksrows;
?>, <?php echo $groupsrows;
?>] ?>]
} }]
] };
}
;
var $dashChartLinesData = { var $dashChartLinesData = {
labels: ['今日浏览', '昨日浏览', '本月浏览', '总浏览', '链接数', '分组数'], labels: ['今日浏览', '昨日浏览', '本月浏览', '总浏览'],
datasets: [{ datasets: [{
label: '数量', label: '数量',
data: [<?php echo $tjtoday; data: [<?php echo $tjtoday;
?>, <?php echo $tjyesterday; ?>, <?php echo $tjyesterday;
?>, <?php echo $tjmonth; ?>, <?php echo $tjmonth;
?>, <?php echo $tjtotal; ?>, <?php echo $tjtotal;
?>,<?php echo $linksrows;
?>, <?php echo $groupsrows;
?>], ?>],
borderColor: '#358ed7', borderColor: '#358ed7',
backgroundColor: 'rgba(53, 142, 215, 0.175)', backgroundColor: 'rgba(53, 142, 215, 0.175)',
borderWidth: 1, borderWidth: 1,
fill: false, fill: false,
lineTension: 0 lineTension: 0
} }]
] };
}
;
new Chart($dashChartBarsCnt, { new Chart($dashChartBarsCnt, {
type: 'bar', type: 'bar',
data: $dashChartBarsData data: $dashChartBarsData
} });
);
var myLineChart = new Chart($dashChartLinesCnt, { var myLineChart = new Chart($dashChartLinesCnt, {
type: 'line', type: 'line',
data: $dashChartLinesData, data: $dashChartLinesData,
} });
); });
}
);
</script> </script>

View File

@ -1,7 +1,8 @@
<?php <?php
$title = '网站设置'; $title = '网站设置';
include './head.php'; include './head.php';
function uploadimg($arr,$uppath,$uptype) { function uploadimg($arr, $uppath, $uptype)
{
if ((($arr["type"] == "image/jpeg") || ($arr["type"] == "image/jpg") || ($arr["type"] == "image/png")) && $arr["size"] < 10485760) { if ((($arr["type"] == "image/jpeg") || ($arr["type"] == "image/jpg") || ($arr["type"] == "image/png")) && $arr["size"] < 10485760) {
copy($arr["tmp_name"], ROOT . $uppath); copy($arr["tmp_name"], ROOT . $uppath);
saveSetting($uptype, '/' . $uppath); saveSetting($uptype, '/' . $uppath);
@ -46,9 +47,9 @@ if($set=='save') {
saveSetting('wztj', $wztj); saveSetting('wztj', $wztj);
saveSetting('cdnpublic', $cdnpublic); saveSetting('cdnpublic', $cdnpublic);
saveSetting('home-title', $home_title); saveSetting('home-title', $home_title);
uploadimg($_FILES["logoimg"],'assets/img/logo.png','logo'); uploadimg($_FILES["logoimg"], 'assets/img/web-logo.png', 'logo');
uploadimg($_FILES["wapbackgroundimg"],'assets/img/wapbackground.jpg','wap_background'); uploadimg($_FILES["wapbackgroundimg"], 'assets/img/web-wapbackground.jpg', 'wap_background');
uploadimg($_FILES["backgroundimg"],'assets/img/background.jpg','background'); uploadimg($_FILES["backgroundimg"], 'assets/img/web-background.jpg', 'background');
echo '<script>alert("修改成功!");window.location.href="./set.php";</script>'; echo '<script>alert("修改成功!");window.location.href="./set.php";</script>';
} else { } else {
?> ?>
@ -79,7 +80,7 @@ if($set=='save') {
<input type="file" style="display:none" accept=".png,.jpeg,.jpg" id="logoimg" name="logoimg" onclick="updatetext('checklogo');" /> <input type="file" style="display:none" accept=".png,.jpeg,.jpg" id="logoimg" name="logoimg" onclick="updatetext('checklogo');" />
</div> </div>
</div> </div>
<small class="help-block">填写图片的URL默认值<code>./assets/img/logo.png</code><code><?php echo siteurl()?>/assets/img/logo.png</code>或从<code>本地上传</code></small> <small class="help-block">比例1:1(正方形),可填写图片的URL默认值<code>./assets/img/logo.png</code><code><?php echo siteurl() ?>/assets/img/logo.png</code>或从<code>本地上传</code></small>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="web_site_background">网站背景</label> <label for="web_site_background">网站背景</label>
@ -88,7 +89,8 @@ if($set=='save') {
<div class="input-group-btn"> <div class="input-group-btn">
<label class="btn btn-default" id="checkbackground" for="backgroundimg" type="button">选择图片</label> <label class="btn btn-default" id="checkbackground" for="backgroundimg" type="button">选择图片</label>
<input type="file" style="display:none" accept="image/png,image/jpeg" id="backgroundimg" name="backgroundimg" onclick="updatetext('checkbackground');" /> <input type="file" style="display:none" accept="image/png,image/jpeg" id="backgroundimg" name="backgroundimg" onclick="updatetext('checkbackground');" />
</div></div> </div>
</div>
<small class="help-block">填写图片的URL<code>./assets/img/background.jpg</code><code><?php echo siteurl() ?>/assets/img/background.jpg</code>或从<code>本地上传</code><br>设置Bing每日壁纸<a href="https://doc.lylme.com/spage/#/%E8%83%8C%E6%99%AF%E8%AE%BE%E7%BD%AE" target="_blank">查看教程</a><br>注:修改后需要清除浏览器缓存才会改变</small> <small class="help-block">填写图片的URL<code>./assets/img/background.jpg</code><code><?php echo siteurl() ?>/assets/img/background.jpg</code>或从<code>本地上传</code><br>设置Bing每日壁纸<a href="https://doc.lylme.com/spage/#/%E8%83%8C%E6%99%AF%E8%AE%BE%E7%BD%AE" target="_blank">查看教程</a><br>注:修改后需要清除浏览器缓存才会改变</small>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -98,7 +100,8 @@ if($set=='save') {
<div class="input-group-btn"> <div class="input-group-btn">
<label class="btn btn-default" id="checkwapbackground" for="wapbackgroundimg" type="button">选择图片</label> <label class="btn btn-default" id="checkwapbackground" for="wapbackgroundimg" type="button">选择图片</label>
<input type="file" style="display:none" accept="image/png,image/jpeg" id="wapbackgroundimg" name="wapbackgroundimg" onclick="updatetext('checkwapbackground');" /> <input type="file" style="display:none" accept="image/png,image/jpeg" id="wapbackgroundimg" name="wapbackgroundimg" onclick="updatetext('checkwapbackground');" />
</div></div> </div>
</div>
<small class="help-block">手机端独立背景留空则使用PC端壁纸<br>:修改后需要清除浏览器缓存才会改变</small> <small class="help-block">手机端独立背景留空则使用PC端壁纸<br>:修改后需要清除浏览器缓存才会改变</small>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -133,7 +136,9 @@ if($set=='save') {
<div class="form-group"> <div class="form-group">
<label class="btn-block" for="web_yan_status">随机一言开关</label> <label class="btn-block" for="web_yan_status">随机一言开关</label>
<label class="lyear-switch switch-solid switch-cyan"> <label class="lyear-switch switch-solid switch-cyan">
<input type="checkbox" <?php if($conf['yan']!='false')echo 'checked="checked"';?> name="yan" value="true"> <input type="checkbox" <?php if ($conf['yan'] != 'false') {
echo 'checked="checked"';
} ?> name="yan" value="true">
<span></span> <span></span>
</label> </label>
<small class="help-block">显示在首页的随机一言,自定义一言文件路径,一行一条<code>/assets/date/date.dat</code> </small> <small class="help-block">显示在首页的随机一言,自定义一言文件路径,一行一条<code>/assets/date/date.dat</code> </small>
@ -141,7 +146,9 @@ if($set=='save') {
<div class="form-group"> <div class="form-group">
<label class="btn-block" for="web_tq_status">天气显示开关</label> <label class="btn-block" for="web_tq_status">天气显示开关</label>
<label class="lyear-switch switch-solid switch-primary"> <label class="lyear-switch switch-solid switch-primary">
<input type="checkbox" <?php if($conf['tq']!='false')echo 'checked="checked"';?> name="tq" value="true"> <input type="checkbox" <?php if ($conf['tq'] != 'false') {
echo 'checked="checked"';
} ?> name="tq" value="true">
<span></span> <span></span>
</label> </label>
<small class="help-block">和风天气插件,若不能使用请申请自己的密钥填入,<a href="https://doc.lylme.com/spage/#/%E5%A4%A9%E6%B0%94" target="_blank">查看教程</a><br><code>baisu模板关闭后同时关闭时间显示</code> </small> <small class="help-block">和风天气插件,若不能使用请申请自己的密钥填入,<a href="https://doc.lylme.com/spage/#/%E5%A4%A9%E6%B0%94" target="_blank">查看教程</a><br><code>baisu模板关闭后同时关闭时间显示</code> </small>

View File

@ -15,8 +15,7 @@ $sousrows=$DB->num_rows($DB->query("SELECT * FROM `lylme_sou`"));
$set = isset($_GET['set']) ? $_GET['set'] : null; $set = isset($_GET['set']) ? $_GET['set'] : null;
if($set=='add') if($set == 'add') {
{
echo '<h4>新增搜索接</h4> echo '<h4>新增搜索接</h4>
<div class="panel-body"> <div class="panel-body">
<form action="./sou.php?set=add_submit" method="POST"> <form action="./sou.php?set=add_submit" method="POST">
@ -68,9 +67,7 @@ echo '<h4>新增搜索接</h4>
</div> </div>
<br/><a href="./sou.php"><<返回</a> <br/><a href="./sou.php"><<返回</a>
</div></div>'; </div></div>';
} } elseif($set == 'edit') {
elseif($set=='edit')
{
$id = $_GET['id']; $id = $_GET['id'];
$row2 = $DB->query("select * from lylme_sou where sou_id='$id' limit 1"); $row2 = $DB->query("select * from lylme_sou where sou_id='$id' limit 1");
@ -96,7 +93,7 @@ echo '<h4>修改搜索引擎</h4>
<label>*搜索引擎地址: (*必填)</label><br> <label>*搜索引擎地址: (*必填)</label><br>
<input type="text" class="form-control" name="link" value="' . $row['sou_link'] . '" required placeholder="https://www.baidu.com/s?word="> <input type="text" class="form-control" name="link" value="' . $row['sou_link'] . '" required placeholder="https://www.baidu.com/s?word=">
<small class="help-block">例:百度搜索 <code>https://www.baidu.com/s?word=</code><a href="https://blog.lylme.com/archives/lylme_spage.html#sou">查看获取接口教程</a> <small class="help-block">例:百度搜索 <code>https://www.baidu.com/s?word=</code><a href="https://blog.lylme.com/archives/lylme_spage.html#sou">查看获取接口教程</a>
<br>注意:当前仅支持搜索词作为末尾,例如:<code>https://www.baidu.com/s?word=搜索内容</code><br>如果使用GET请求搜索搜索词不处于末尾<code>https://www.baidu.com/s?wd=搜索词&ie=UTF-8</code>可将搜索词参数调换到末尾,如<code>https://www.baidu.com/s?ie=UTF-8&wd=搜索词</code>多个GET参数用以<code>&</code>分隔<br>如果搜索词不在末尾且非GET请求,如<code>https://xxx.com/s/搜索词.html</code>类似情况可用PHP页面定制搜索接口<a href="https://blog.lylme.com/archives/lylme_spage.html#souphp">查看教程</a></small> <br>注意:当前仅支持搜索词作为末尾,例如:<code>https://www.baidu.com/s?word=搜索内容</code><br>如果使用GET请求搜索搜索词不处于末尾<code>https://www.baidu.com/s?wd=搜索词&ie=UTF-8</code>可将搜索词参数调换到末尾,如<code>https://www.baidu.com/s?ie=UTF-8&wd=搜索词</code>多个GET参数用以<code>&</code>分隔<br>如果搜索词不在末尾,如<code>https://xxx.com/s/搜索词.html</code>类似情况可用PHP定制搜索接口<a href="https://doc.lylme.com/spage/#/search-help">查看教程</a></small>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>搜索引擎手机端地址: (选填) </label><br> <label>搜索引擎手机端地址: (选填) </label><br>
@ -122,7 +119,9 @@ echo '<h4>修改搜索引擎</h4>
<label class="btn-block" for="web_tq_status">启用开关</label> <label class="btn-block" for="web_tq_status">启用开关</label>
<label class="lyear-switch switch-solid switch-primary"> <label class="lyear-switch switch-solid switch-primary">
<input type="checkbox"'; <input type="checkbox"';
if($row['sou_st']==1){ echo 'checked="checked"'; } if($row['sou_st'] == 1) {
echo 'checked="checked"';
}
echo 'name="st" value="true"> echo 'name="st" value="true">
<span></span> <span></span>
</label> </label>
@ -133,9 +132,7 @@ echo '<h4>修改搜索引擎</h4>
</div> </div>
<br/><a href="./sou.php"><<返回</a> <br/><a href="./sou.php"><<返回</a>
</div></div>'; </div></div>';
} } elseif($set == 'add_submit') {
elseif($set=='add_submit')
{
$name = $_POST['name']; $name = $_POST['name'];
$alias = $_POST['alias']; $alias = $_POST['alias'];
$hint = $_POST['hint']; $hint = $_POST['hint'];
@ -143,7 +140,11 @@ $link=$_POST['link'];
$waplink = $_POST['waplink']; $waplink = $_POST['waplink'];
$color = $_POST['color']; $color = $_POST['color'];
$icon = $_POST['icon']; $icon = $_POST['icon'];
if($_POST['st']==true){$st=1;}else{$st=0;} if($_POST['st'] == true) {
$st = 1;
} else {
$st = 0;
}
$sou_order = $sousrows + 1; $sou_order = $sousrows + 1;
if (empty($name) && empty($alias) && empty($hint) && empty($link) && empty($color) && empty($icon)) { if (empty($name) && empty($alias) && empty($hint) && empty($link) && empty($color) && empty($icon)) {
@ -156,17 +157,17 @@ $sql="INSERT INTO `lylme_sou` (`sou_id`, `sou_alias`, `sou_name`, `sou_hint`, `s
if($DB->query($sql)) { if($DB->query($sql)) {
echo '<script>alert("添加搜索引擎 ' . $name . ' 成功!");window.location.href="./sou.php";</script>'; echo '<script>alert("添加搜索引擎 ' . $name . ' 成功!");window.location.href="./sou.php";</script>';
}else } else {
echo '<script>alert("添加搜索引擎失败!");history.go(-1);</script>'; echo '<script>alert("添加搜索引擎失败!");history.go(-1);</script>';
} }
} }
elseif($set=='edit_submit') } elseif($set == 'edit_submit') {
{
$id = $_GET['id']; $id = $_GET['id'];
$rows2 = $DB->query("select * from lylme_sou where sou_id='$id' limit 1"); $rows2 = $DB->query("select * from lylme_sou where sou_id='$id' limit 1");
$rows = $DB->fetch($rows2); $rows = $DB->fetch($rows2);
if(!$rows) if(!$rows) {
echo '<script>alert("当前记录不存在!");history.go(-1);</script>'; echo '<script>alert("当前记录不存在!");history.go(-1);</script>';
}
$name = $_POST['name']; $name = $_POST['name'];
$alias = $_POST['alias']; $alias = $_POST['alias'];
$hint = $_POST['hint']; $hint = $_POST['hint'];
@ -175,7 +176,11 @@ $waplink=$_POST['waplink'];
$color = $_POST['color']; $color = $_POST['color'];
$icon = $_POST['icon']; $icon = $_POST['icon'];
$order = $_POST['order']; $order = $_POST['order'];
if($_POST['st']==true){$st=1;}else{$st=0;} if($_POST['st'] == true) {
$st = 1;
} else {
$st = 0;
}
if (empty($name) && empty($alias) && empty($hint) && empty($link) && empty($color) && empty($icon) && empty($order)) { if (empty($name) && empty($alias) && empty($hint) && empty($link) && empty($color) && empty($icon) && empty($order)) {
echo '<script>alert("保存错误,请确保带星号的都不为空!");history.go(-1);</script>'; echo '<script>alert("保存错误,请确保带星号的都不为空!");history.go(-1);</script>';
@ -184,23 +189,21 @@ if (empty($name) && empty($alias)&& empty($hint) && empty($link) && empty($color
$sql = "UPDATE `lylme_sou` SET `sou_alias` = '" . $alias . "', `sou_name` = '" . $name . "', `sou_hint` = '" . $hint . "', `sou_color` = '" . $color . "', `sou_link` = '" . $link . "', `sou_waplink` = '" . $waplink . "', `sou_icon` = '" . $icon . "', `sou_st` = '" . $st . "', `sou_order` = '" . $order . "' WHERE `lylme_sou`.`sou_id` = " . $id . ";"; $sql = "UPDATE `lylme_sou` SET `sou_alias` = '" . $alias . "', `sou_name` = '" . $name . "', `sou_hint` = '" . $hint . "', `sou_color` = '" . $color . "', `sou_link` = '" . $link . "', `sou_waplink` = '" . $waplink . "', `sou_icon` = '" . $icon . "', `sou_st` = '" . $st . "', `sou_order` = '" . $order . "' WHERE `lylme_sou`.`sou_id` = " . $id . ";";
if($DB->query($sql)) if($DB->query($sql)) {
echo '<script>alert("修改搜索引擎 ' . $name . ' 成功!");window.location.href="./sou.php";</script>'; echo '<script>alert("修改搜索引擎 ' . $name . ' 成功!");window.location.href="./sou.php";</script>';
else } else {
echo '<script>alert("修改失败!");history.go(-1);</script>'; echo '<script>alert("修改失败!");history.go(-1);</script>';
} }
} }
elseif($set=='delete') } elseif($set == 'delete') {
{
$id = $_GET['id']; $id = $_GET['id'];
$sql = "DELETE FROM lylme_sou WHERE sou_id='$id'"; $sql = "DELETE FROM lylme_sou WHERE sou_id='$id'";
if($DB->query($sql)) if($DB->query($sql)) {
echo '<script>alert("删除成功!");window.location.href="./sou.php";</script>'; echo '<script>alert("删除成功!");window.location.href="./sou.php";</script>';
else } else {
echo '<script>alert("删除失败!");history.go(-1);</script>'; echo '<script>alert("删除失败!");history.go(-1);</script>';
} }
else } else {
{
echo '<div class="alert alert-info">系统共有 <b>' . $sousrows . '</b> 个搜索引擎<br/><a href="./sou.php?set=add" class="btn btn-primary">新增搜索引擎</a></div> <div class="table-responsive"> echo '<div class="alert alert-info">系统共有 <b>' . $sousrows . '</b> 个搜索引擎<br/><a href="./sou.php?set=add" class="btn btn-primary">新增搜索引擎</a></div> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<thead><tr><th>排序权重</th><th>名称</th><th>别名</th><th>地址</th><th>状态</th><th>操作</th></tr></thead> <thead><tr><th>排序权重</th><th>名称</th><th>别名</th><th>地址</th><th>状态</th><th>操作</th></tr></thead>
@ -208,11 +211,14 @@ echo '<div class="alert alert-info">系统共有 <b>'.$sousrows.'</b> 个搜索
$rs = $DB->query("SELECT * FROM `lylme_sou` ORDER BY `lylme_sou`.`sou_order` ASC"); $rs = $DB->query("SELECT * FROM `lylme_sou` ORDER BY `lylme_sou`.`sou_order` ASC");
while($res = $DB->fetch($rs)) while($res = $DB->fetch($rs)) {
{
echo '<tr><td><b>' . $res['sou_order'] . '</b></td><td><b><font color="' . $res['sou_color'] . '">' . $res['sou_name'] . '</font></b></td><td>' . $res['sou_alias'] . '</td><td>' . $res['sou_link'] . '</td><td>'; echo '<tr><td><b>' . $res['sou_order'] . '</b></td><td><b><font color="' . $res['sou_color'] . '">' . $res['sou_name'] . '</font></b></td><td>' . $res['sou_alias'] . '</td><td>' . $res['sou_link'] . '</td><td>';
if($res['sou_st'] == 1){echo '<span class="label label-success">开启</span>';}else{echo '<span class="label label-danger">关闭</span>';} if($res['sou_st'] == 1) {
echo '<span class="label label-success">开启</span>';
} else {
echo '<span class="label label-danger">关闭</span>';
}
echo '</td><td><a href="./sou.php?set=edit&id=' . $res['sou_id'] . '" class="btn btn-info btn-xs">编辑</a>&nbsp;<a href="./sou.php?set=delete&id=' . $res['sou_id'] . '" class="btn btn-xs btn-danger" onclick="return confirm(\'确定删除 ' . $res['sou_name'] . '\');">删除</a></td></tr>'; echo '</td><td><a href="./sou.php?set=edit&id=' . $res['sou_id'] . '" class="btn btn-info btn-xs">编辑</a>&nbsp;<a href="./sou.php?set=delete&id=' . $res['sou_id'] . '" class="btn btn-xs btn-danger" onclick="return confirm(\'确定删除 ' . $res['sou_name'] . '\');">删除</a></td></tr>';
} }

7
www/assets/css/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 KiB

After

Width:  |  Height:  |  Size: 434 KiB

2
www/assets/js/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

1
www/assets/js/layer.css Normal file

File diff suppressed because one or more lines are too long

2
www/assets/js/layer.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@ define('IN_CRONLITE', true);
define('SYS_KEY', 'lylme_key'); define('SYS_KEY', 'lylme_key');
define('SYSTEM_ROOT', dirname(__FILE__) . '/'); define('SYSTEM_ROOT', dirname(__FILE__) . '/');
define('ROOT', dirname(SYSTEM_ROOT) . '/'); define('ROOT', dirname(SYSTEM_ROOT) . '/');
//error_reporting(0); error_reporting(0);
require ROOT . 'config.php'; require ROOT . 'config.php';
if(!defined('SQLITE') && (!$dbconfig['user'] || !$dbconfig['pwd'] || !$dbconfig['dbname'])) { if(!defined('SQLITE') && (!$dbconfig['user'] || !$dbconfig['pwd'] || !$dbconfig['dbname'])) {
@unlink(ROOT . 'install/install.lock'); @unlink(ROOT . 'install/install.lock');

View File

@ -77,7 +77,20 @@ if($sqlvn < $filevn) {
$DB->query("INSERT INTO `lylme_config` (`k`, `v`, `description`) VALUES ('md5pass', '1', '启用md5加密密码');"); $DB->query("INSERT INTO `lylme_config` (`k`, `v`, `description`) VALUES ('md5pass', '1', '启用md5加密密码');");
saveSetting('admin_pwd', $admin_pwd); saveSetting('admin_pwd', $admin_pwd);
} }
}
if ($sqlvn < 10805) {
$version = 'v1.8.5';
if (!isset($conf['about'])) {
$DB->query("INSERT INTO `lylme_config` (`k`, `v`, `description`) VALUES ('about', '1', '新版关于页面');");
$about_file = ROOT . 'about/about.txt';
if (file_exists($about_file)) {
$about_content = str_replace(PHP_EOL, '\r\n', daddslashes(file_get_contents($about_file)));
$about = " INSERT INTO `lylme_config` (`k`, `v`, `description`) VALUES ('about_content', '$about_content', '关于页面');";
$DB->query($about);
@unlink(ROOT . 'about/说明.txt');
}
}
} }
$sql = explode(';', $sql); $sql = explode(';', $sql);
for ($i = 0; $i < count($sql); $i++) { for ($i = 0; $i < count($sql); $i++) {

View File

@ -1,3 +1,3 @@
<?php <?php
define('VERSION', '1.8.0'); define('VERSION', '1.8.5');

View File

@ -1,3 +1,4 @@
<<<<<<< HEAD:www/install/data/install_struct.sql
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0; SET AUTOCOMMIT = 0;
START TRANSACTION; START TRANSACTION;
@ -272,3 +273,6 @@ INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`, `sort`
(4, '关于本站', '/about', 1, 10), (4, '关于本站', '/about', 1, 10),
(5, '申请收录', '/apply', 1, 10), (5, '申请收录', '/apply', 1, 10),
(6, '查看', '/pwd', 0, 10); (6, '查看', '/pwd', 0, 10);
=======
SELECT `k`, `v` FROM `lylme_config`;
>>>>>>> master:install/data/install_data.sql

View File

@ -1,5 +1,5 @@
-- v1.8.0 -- v1.8.0
ALTER TABLE `lylme_apply` CHANGE `apply_mail` `apply_desc` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '链接描述'; ALTER TABLE `lylme_apply` CHANGE `apply_mail` `apply_desc` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;
ALTER TABLE `lylme_links` CHANGE `PS` `link_desc` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '链接描述'; ALTER TABLE `lylme_links` CHANGE `PS` `link_desc` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '链接描述';
ALTER TABLE `lylme_tags` ADD `sort` INT NOT NULL DEFAULT '10' COMMENT '权重' AFTER `tag_target`; ALTER TABLE `lylme_tags` ADD `sort` INT NOT NULL DEFAULT '10' COMMENT '权重' AFTER `tag_target`;
ALTER TABLE `lylme_config` ADD UNIQUE( `k`); ALTER TABLE `lylme_config` ADD UNIQUE( `k`);

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh-CN"> <html lang="zh-CN">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
@ -21,7 +22,6 @@
<meta name="lsvn" content="<?php echo base64_encode($conf['version']) ?>"> <meta name="lsvn" content="<?php echo base64_encode($conf['version']) ?>">
<link href="<?php echo $templatepath; ?>/css/style.css?v=20221210" rel="stylesheet"> <link href="<?php echo $templatepath; ?>/css/style.css?v=20221210" rel="stylesheet">
<link href="<?php echo $templatepath; ?>/css/wea.css" rel="stylesheet"> <link href="<?php echo $templatepath; ?>/css/wea.css" rel="stylesheet">
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-2-M/jquery/3.5.1/jquery.min.js"></script>
</head> </head>
<?php if (!empty(background())) { <?php if (!empty(background())) {
echo '<body style="background: url(' . background() . ') no-repeat center/cover;">'; echo '<body style="background: url(' . background() . ') no-repeat center/cover;">';
@ -84,7 +84,9 @@ $html = array(
?> ?>
<input class="wd soinput" type="text" placeholder="" name="q" x-webkit-speech lang="zh-CN" autocomplete="off"> <input class="wd soinput" type="text" placeholder="" name="q" x-webkit-speech lang="zh-CN" autocomplete="off">
<button onclick="go('');"><svg class="icon" style=" width: 21px; height: 21px; opacity: 0.5;" aria-hidden="true"><use xlink:href="#icon-sousuo"></use></svg></button> <button onclick="go('');"><svg class="icon" style=" width: 21px; height: 21px; opacity: 0.5;" aria-hidden="true">
<use xlink:href="#icon-sousuo"></use>
</svg></button>
<div id="word"></div> <div id="word"></div>
</div> </div>
@ -122,9 +124,10 @@ if ($conf['yan'] == 'true') {
<!-- <p> Theme by <a href="https://github.com/5iux/sou/" target="_blank">5iux</a> .<?php echo $conf['copyright']; <!-- <p> Theme by <a href="https://github.com/5iux/sou/" target="_blank">5iux</a> .<?php echo $conf['copyright'];
?></p> --> ?></p> -->
</div> </div>
<script src="<?php echo $cdnpublic ?>/assets/js/jquery.min.js"></script>
<script src="<?php echo $cdnpublic ?>/assets/js/svg.js"></script> <script src="<?php echo $cdnpublic ?>/assets/js/svg.js"></script>
<script src="<?php echo $templatepath; ?>/js/sou.js?v=20221210"></script> <script src="<?php echo $templatepath; ?>/js/sou.js?v=20221210"></script>
<script> <script>
function solist() { function solist() {
return <?php echo $json ?>; return <?php echo $json ?>;
@ -138,4 +141,5 @@ githubhttps://github.com/5iux/sou
版权所有,请勿删除 版权所有,请勿删除
--> -->
</body> </body>
</html> </html>

View File

@ -1,32 +0,0 @@
# OneNav主题
onenav导航的主题
![输入图片说明](https://images.gitee.com/uploads/images/2022/0226/233837_3fa5c693_1718725.png "屏幕截图.png")
![输入图片说明](https://images.gitee.com/uploads/images/2022/0226/233859_ed83bce1_1718725.png "屏幕截图.png")
## 天气插件
天气插件采用的是【和风天气】的标准版天气插件,可无限制免费试用,需要先注册和风天气账号,
[和风天气账号注册](https://id.qweather.com/#/register)
[和风天气创建插件页面](https://widget.qweather.com/create-standard)
插件 选择【横版】、【款240px】、【高:180px】;否则会出现样式偏移的问题。其他条件任选。
生成代码后 除第一行`<div id="he-plugin-standard"></div>`外,其他代码复制到主题文件夹下`index.php`底部对应位置即可。
## 一键添加
![输入图片说明](https://images.gitee.com/uploads/images/2021/0410/112213_3a134ad6_1718725.gif "a.gif")
在浏览器标签栏添加新标签
标签名称栏随意填写
标签地址栏,填写一下地址代码
```
javascript: var url = location.href;
var title = document.title;
void(open('http://www.你的域名.com/index.php?c=admin&page=add_quick_tpl&url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title), "_blank", "toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, left=200,top=200,width=400, height=460"));
```
注意域名要替换成你的域名,然后保存即可。
## 相关链接
* [OneNav官网](https://nav.rss.ink/)
* [onenav作者](https://www.xiaoz.me/)

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand"> <meta name="renderer" content="webkit|ie-comp|ie-stand">
@ -14,16 +15,17 @@
<meta name="keywords" content="<?php echo $conf['keywords'] ?>" /> <meta name="keywords" content="<?php echo $conf['keywords'] ?>" />
<meta name="description" content="<?php echo $conf['description'] ?>" /> <meta name="description" content="<?php echo $conf['description'] ?>" />
<link rel="icon" href="<?php echo $conf['logo'] ?>" type="image/x-icon"> <link rel="icon" href="<?php echo $conf['logo'] ?>" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="<?php echo $templatepath;?>/css/style.css?v=20220512" /> <link rel="stylesheet" type="text/css" href="<?php echo $templatepath; ?>/css/style.css?v=20240109" />
<link rel="stylesheet" href="<?php echo $cdnpublic ?>/assets/css/fontawesome-free5.13.0.css"> <link rel="stylesheet" href="<?php echo $cdnpublic ?>/assets/css/fontawesome-free5.13.0.css">
<meta name="lsvn" content="<?php echo base64_encode($conf['version']) ?>"> <meta name="lsvn" content="<?php echo base64_encode($conf['version']) ?>">
</head> </head>
<body> <body>
<!--手机顶部 S--> <!--手机顶部 S-->
<div class="m-header"> <div class="m-header">
<div class="logo"> <div class="logo">
<a href="/"><?php echo explode("-", $conf['title'])[0]; <a href="/" class="logo-link text-base"><img src="<?php echo $conf['logo'] ?>" class="hide-mb-sm"><?php echo explode("-", $conf['title'])[0];?> </a>
?></a>
</div> </div>
<div class="navbar"> <div class="navbar">
<i class="iconfont icon-caidan"></i> <i class="iconfont icon-caidan"></i>
@ -48,8 +50,7 @@
<!--左侧分类栏 S--> <!--左侧分类栏 S-->
<div class="index-nav"> <div class="index-nav">
<div class="logo"> <div class="logo">
<a href="/"><?php echo explode("-", $conf['title'])[0]; <a href="/" class="logo-link text-base"><img src="<?php echo $conf['logo'] ?>" class="hide-mb-sm"><?php echo explode("-", $conf['title'])[0];?> </a>
?></a>
</div> </div>
@ -66,7 +67,8 @@
echo '>' . $taglists["tag_name"] . '</a> </div> '; echo '>' . $taglists["tag_name"] . '</a> </div> ';
} }
?> ?>
<hr><p style="margin: 10px;color: #000;font-weight: bold;font-size:18px">分组</p> <hr>
<p style="margin: 10px;color: #000;font-weight: bold;font-size:18px">分组</p>
<?php <?php
$groups = $site->getGroups(); $groups = $site->getGroups();
@ -84,8 +86,7 @@
<div class="index-main"> <div class="index-main">
<!--搜索 S--> <!--搜索 S-->
<div class="search-main-w"> <div class="search-main-w">
<div class="date-main" <div class="date-main" <?php if (background()) {
<?php if(background()) {
echo 'style="background-image: url(' . background() . ')"'; echo 'style="background-image: url(' . background() . ')"';
} ?>> } ?>>
<time class="times" id="nowTime">00:00:00</time> <time class="times" id="nowTime">00:00:00</time>
@ -210,13 +211,14 @@ $soulists = $site->getSou();
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_3000268_oov6h4vru0h.css" /> <link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_3000268_oov6h4vru0h.css" />
<script src="//at.alicdn.com/t/font_3000268_oov6h4vru0h.js" type="text/javascript" charset="utf-8"></script> <script src="//at.alicdn.com/t/font_3000268_oov6h4vru0h.js" type="text/javascript" charset="utf-8"></script>
<!--JS--> <!--JS-->
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-2-M/jquery/3.5.1/jquery.min.js" charset="utf-8"></script> <script src="<?php echo $cdnpublic ?>/assets/js/jquery.min.js"></script>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js" type="application/javascript"></script> <!-- <script src="<?php echo $cdnpublic ?>/assets/js/layer.js" type="application/javascript"></script> -->
<script src="<?php echo $templatepath; ?>/js/holmes.js" type="text/javascript" charset="utf-8"></script> <script src="<?php echo $templatepath; ?>/js/holmes.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php echo $templatepath; ?>/js/lunar.js" type="text/javascript" charset="utf-8"></script> <script src="<?php echo $templatepath; ?>/js/lunar.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php echo $templatepath; ?>/js/common.js" type="text/javascript" charset="utf-8"></script> <script src="<?php echo $templatepath; ?>/js/common.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php echo $cdnpublic ?>/assets/js/svg.js"></script> <script src="<?php echo $cdnpublic ?>/assets/js/svg.js"></script>
</body> </body>
</html> </html>
<!--二开说明:--> <!--二开说明:-->
<!--1. 当前主题使用基于baisuTwo主题开发作者baisu--> <!--1. 当前主题使用基于baisuTwo主题开发作者baisu-->

View File

@ -50,9 +50,9 @@ function keyClick() {
if(kw !== "") { if(kw !== "") {
window.open(url + kw); window.open(url + kw);
} else { } else {
layer.msg('未输入搜索框关键词!', { // layer.msg('未输入搜索框关键词!', {
time: 1000, // time: 1000,
}); // });
} }
} }
} }

View File

@ -159,9 +159,9 @@
<!-- footer @e --> <!-- footer @e -->
</div> </div>
<!-- wrap @e --> <!-- wrap @e -->
<script src="http://cdn.staticfile.org/jquery/3.6.0/jquery.min.js"></script> <script src="//cdn.staticfile.org/jquery/3.6.0/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/bootstrap/4.6.1/js/bootstrap.bundle.min.js"></script> <script src="//cdn.staticfile.org/bootstrap/4.6.1/js/bootstrap.bundle.min.js"></script>
<script src="http://cdn.staticfile.org/layer/3.5.1/layer.js"></script> <script src="//cdn.staticfile.org/layer/3.5.1/layer.js"></script>
<script src="<?php echo $templatepath;?>/js/nioapp.min.js"></script> <script src="<?php echo $templatepath;?>/js/nioapp.min.js"></script>
<script src="<?php echo $templatepath;?>/js/script.js?v=1001"></script> <script src="<?php echo $templatepath;?>/js/script.js?v=1001"></script>
<script src="<?php echo $templatepath;?>/js/common.js?v=1002"></script> <script src="<?php echo $templatepath;?>/js/common.js?v=1002"></script>

View File

@ -1,5 +1,7 @@
<?php if(basename($_SERVER['PHP_SELF']) == basename(__FILE__)) header("Location:/"); ?> <?php if(basename($_SERVER['PHP_SELF']) == basename(__FILE__)) {
<script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/4.5.3/js/bootstrap.min.js" type="application/javascript"></script> header("Location:/");
} ?>
<script src="<?php echo $cdnpublic ?>/assets/js/bootstrap.min.js" type="application/javascript"></script>
<script src="<?php echo $templatepath;?>/js/script.js?v=20220611"></script> <script src="<?php echo $templatepath;?>/js/script.js?v=20220611"></script>
<script src="<?php echo $cdnpublic ?>/assets/js/svg.js"></script> <script src="<?php echo $cdnpublic ?>/assets/js/svg.js"></script>
<div style="display:none;" class="back-to" id="toolBackTop"> <div style="display:none;" class="back-to" id="toolBackTop">
@ -7,11 +9,14 @@
</div> </div>
<div class="mt-5 mb-3 footer text-muted text-center"> <div class="mt-5 mb-3 footer text-muted text-center">
<!--备案信息--> <!--备案信息-->
<?php if($conf['icp'] != NULL){ <?php if($conf['icp'] != null) {
echo '<img src="./assets/img/icp.png" width="16px" height="16px" /><a href="http://beian.miit.gov.cn/" class="icp" target="_blank" _mstmutation="1" _istranslated="1">'.$conf['icp'].'</a>'; } ?> echo '<img src="./assets/img/icp.png" width="16px" height="16px" /><a href="http://beian.miit.gov.cn/" class="icp" target="_blank" _mstmutation="1" _istranslated="1">' . $conf['icp'] . '</a>';
} ?>
<!--版权信息--> <!--版权信息-->
<p> <?php echo $conf['copyright']; ?></p> <p> <?php echo $conf['copyright']; ?></p>
<!--网站统计--> <!--网站统计-->
<?php if($conf['wztj'] != NULL){echo $conf["wztj"];}?> <?php if($conf['wztj'] != null) {
echo $conf["wztj"];
}?>
</div> </div>
</html> </html>

View File

@ -16,8 +16,8 @@
<meta name="x5-fullscreen" content="true"> <meta name="x5-fullscreen" content="true">
<meta name="x5-page-mode" content="app"> <meta name="x5-page-mode" content="app">
<meta name="lsvn" content="<?php echo base64_encode($conf['version'])?>"> <meta name="lsvn" content="<?php echo base64_encode($conf['version'])?>">
<script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-2-M/jquery/3.5.1/jquery.min.js" type="application/javascript"></script> <script src="<?php echo $cdnpublic ?>/assets/js/jquery.min.js" type="application/javascript"></script>
<link href="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/4.5.3/css/bootstrap.min.css" type="text/css" rel="stylesheet"> <link href="<?php echo $cdnpublic ?>/assets/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" href="<?php echo $templatepath;?>/css/style.css?v=20220611" type="text/css"> <link rel="stylesheet" href="<?php echo $templatepath;?>/css/style.css?v=20220611" type="text/css">
<link rel="stylesheet" href="<?php echo $templatepath;?>/css/font.css" type="text/css"> <link rel="stylesheet" href="<?php echo $templatepath;?>/css/font.css" type="text/css">
<link rel="stylesheet" href="<?php echo $templatepath;?>/css/tag.css?v=20220611" type="text/css"> <link rel="stylesheet" href="<?php echo $templatepath;?>/css/tag.css?v=20220611" type="text/css">

View File

@ -180,4 +180,4 @@ function() {
}(); }();
//返回顶部 //返回顶部
(function(a){a.fn.scrollToTop=function(c){var d={speed:800};c&&a.extend(d,{speed:c});return this.each(function(){var b=a(this);a(window).scroll(function(){100<a(this).scrollTop()?b.fadeIn():b.fadeOut()});b.click(function(b){b.preventDefault();a("body, html").animate({scrollTop:0},d.speed)})})}})(jQuery);$(function(){ahtml='<a href="javascript:void(0)" id="toTop" style="display:none;position:fixed;bottom:66px;right:10px;width:45px;height:45px;border-radius:50%;overflow:hidden;background-image:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAWBAMAAADZWBo2AAAALVBMVEUAAAB5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl4rtNiAAAADnRSTlMARHe7Zu7dMxGIIqqZzHSj3DwAAAB/SURBVBjTYwADPgYk8OABgs2HLPUAjBA6+JAk4FJ8UJLqYLKxsQNTXhIDs/GWBoZCPcEFeop6CnyKvhMYGOQYGJIYmBL4BBgfgDjsrxi4nvMJsCSAOCChh3yHjjqAZV4wcDznO6TFANYTwsASwCfAAOFMFRCdAOd0v3vdAOIAANnHHKk0/kXuAAAAAElFTkSuQmCC\');background-repeat:no-repeat;background-position:center;z-index:999;cursor:pointer;border:1px solid #d8d8d8;box-sizing:border-box;opacity:0.9;"></a>';$("body").append(ahtml);$("#toTop").scrollToTop(300);}); (function(a){a.fn.scrollToTop=function(c){var d={speed:800};c&&a.extend(d,{speed:c});return this.each(function(){var b=a(this);a(window).scroll(function(){100<a(this).scrollTop()?b.fadeIn():b.fadeOut()});b.click(function(b){b.preventDefault();a("body, html").animate({scrollTop:0},d.speed)})})}})(jQuery);$(function(){ahtml='<a href="javascript:void(0)" id="toTop" style="display:none;position:fixed;bottom:66px;right:10px;width:48px;height:48px;background-image:url(\'data:image/svg+xml;base64,PHN2ZyB0PSIxNjU0OTM5MTkxNTY0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEyMTgiIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCI+PHBhdGggZD0iTTUxMyAxMDMuN2MtMjI2LjEgMC00MDkuNCAxODMuMy00MDkuNCA0MDkuNFMyODYuOSA5MjIuNiA1MTMgOTIyLjZzNDA5LjQtMTgzLjMgNDA5LjQtNDA5LjRTNzM5LjEgMTAzLjcgNTEzIDEwMy43eiBtMTUzLjUgMzY0LjdjLTUuMiA1LjMtMTIuMSA3LjktMTkgNy45cy0xMy44LTIuNi0xOS03LjlMNTQ1LjEgMzg1YzAgMC40IDAuMSAwLjcgMC4xIDEuMVY3MDVjMCAxMS4xLTUuNyAyMC45LTE0LjQgMjYuNi00LjcgNC4yLTEwLjkgNi43LTE3LjcgNi43LTYuOCAwLTEzLTIuNS0xNy43LTYuNy04LjctNS43LTE0LjQtMTUuNS0xNC40LTI2LjZWMzg2LjFjMC0wLjQgMC0wLjcgMC4xLTEuMWwtODMuNCA4My40Yy0xMC41IDEwLjUtMjcuNSAxMC41LTM4IDBzLTEwLjUtMjcuNSAwLTM4TDQ5NCAyOTUuOWMxMC41LTEwLjUgMjcuNS0xMC41IDM4IDBsMTM0LjUgMTM0LjVjMTAuNSAxMC40IDEwLjUgMjcuNSAwIDM4eiIgZmlsbD0iIzE1NzJlZiIgcC1pZD0iMTIxOSI+PC9wYXRoPjwvc3ZnPg==\');z-index:999;opacity:0.9;"></a>';$("body").append(ahtml);$("#toTop").scrollToTop(300);});

View File

@ -4,6 +4,9 @@
html5up.net | @ajlkn html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/ */
* {
text-shadow: 0 0 5px black;
}
/* Reset */ /* Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0; margin: 0;
@ -1007,6 +1010,7 @@
line-height: 5.5rem; line-height: 5.5rem;
border: solid 1px #ffffff; border: solid 1px #ffffff;
border-radius: 100%; border-radius: 100%;
background: #fff;
} }
#header .logo .icon:before { #header .logo .icon:before {
font-size: 2rem; font-size: 2rem;