增加 关于页面

This commit is contained in:
LyLme 2022-05-23 15:30:52 +08:00
parent 9aa820a99e
commit ea0a8d04a5
4 changed files with 65 additions and 0 deletions

24
about/about.txt Normal file
View File

@ -0,0 +1,24 @@
<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>

32
about/index.php Normal file
View File

@ -0,0 +1,32 @@
<?php include("../include/common.php"); ?>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>关于 - <?php echo explode("-", $conf['title'])[0];?></title>
<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">
<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>
</head>
<body>
<div class="markdown-section" id="main">
<?php
$about = 'about.txt';
//本页内容请修改about.txt文件防止更新后index.php文件被覆盖
if(file_exists($about)){
//文件存在,直接输出文件内容
echo file_get_contents($about);
}
else {
//文件不存在,从服务器获取后写入本地再输出文件
@file_put_contents($about,file_get_contents('https://cdn.lylme.com/lylme_spage/file/about.txt'));
echo file_get_contents($about);
}
?>
<center><p class="footer"><?php echo $conf['copyright']?></p></center>
</div>
</body>
</html>

7
about/说明.txt Normal file
View File

@ -0,0 +1,7 @@
请勿删除 about.txt 文件,该文件存放网站关于页面的内容
如需修改关于本站的内容请修改about.txt文件防止更新后index.php文件被覆盖
该文件使用HTML语言编写 若您不了解html语言可使用在线生成
html生成https://www.lylme.com/html

2
install/update5.sql Normal file
View File

@ -0,0 +1,2 @@
-- v1.2.0
INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`) VALUES (NULL, '关于本站', '/about', '1');