移动 默认模板文件
This commit is contained in:
parent
bc14e29978
commit
022bbe22b4
|
@ -1,119 +0,0 @@
|
||||||
<?php if(basename($_SERVER['PHP_SELF']) == basename(__FILE__)) header("Location:/"); ?>
|
|
||||||
<div style="display:none;" class="back-to" id="toolBackTop">
|
|
||||||
<a title="返回顶部" onclick="window.scrollTo(0,0);return false;" href="#top" class="back-top"></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mt-5 mb-3 footer text-muted text-center">
|
|
||||||
<!--备案信息-->
|
|
||||||
<?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>'; } ?>
|
|
||||||
<!--版权信息-->
|
|
||||||
<p> <?php echo $conf['copyright']; ?></p>
|
|
||||||
<!--网站统计-->
|
|
||||||
<?php if($conf['wztj'] != NULL){echo $conf["wztj"];}?>
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
!
|
|
||||||
function() {
|
|
||||||
function g() {
|
|
||||||
h(), i(), j(), k()
|
|
||||||
}
|
|
||||||
function h() {
|
|
||||||
d.checked = s()
|
|
||||||
}
|
|
||||||
function i() {
|
|
||||||
var a = document.querySelector('input[name="type"][value="' + p() + '"]');
|
|
||||||
a && (a.checked = !0, l(a))
|
|
||||||
}
|
|
||||||
function j() {
|
|
||||||
v(u())
|
|
||||||
}
|
|
||||||
function k() {
|
|
||||||
w(t())
|
|
||||||
}
|
|
||||||
function l(a) {
|
|
||||||
for (var b = 0; b < e.length; b++) e[b].classList.remove("s-current");
|
|
||||||
a.parentNode.parentNode.parentNode.classList.add("s-current")
|
|
||||||
}
|
|
||||||
function m(a, b) {
|
|
||||||
window.localStorage.setItem("superSearch" + a, b)
|
|
||||||
}
|
|
||||||
function n(a) {
|
|
||||||
return window.localStorage.getItem("superSearch" + a)
|
|
||||||
}
|
|
||||||
function o(a) {
|
|
||||||
f = a.target, v(u()), w(a.target.value), m("type", a.target.value), c.focus(), l(a.target)
|
|
||||||
}
|
|
||||||
function p() {
|
|
||||||
var b = n("type");
|
|
||||||
return b || a[0].value
|
|
||||||
}
|
|
||||||
function q(a) {
|
|
||||||
m("newWindow", a.target.checked ? 1 : -1), x(a.target.checked)
|
|
||||||
}
|
|
||||||
function r(a) {
|
|
||||||
return a.preventDefault(), "" == c.value ? (c.focus(), !1) : (w(t() + c.value), x(s()), s() ? window.open(b.action, +new Date) : location.href = b.action, void 0)
|
|
||||||
}
|
|
||||||
function s() {
|
|
||||||
var a = n("newWindow");
|
|
||||||
return a ? 1 == a : !0
|
|
||||||
}
|
|
||||||
function t() {
|
|
||||||
return document.querySelector('input[name="type"]:checked').value
|
|
||||||
}
|
|
||||||
function u() {
|
|
||||||
return document.querySelector('input[name="type"]:checked').getAttribute("data-placeholder")
|
|
||||||
}
|
|
||||||
function v(a) {
|
|
||||||
c.setAttribute("placeholder", a)
|
|
||||||
}
|
|
||||||
function w(a) {
|
|
||||||
b.action = a
|
|
||||||
}
|
|
||||||
function x(a) {
|
|
||||||
a ? b.target = "_blank" : b.removeAttribute("target")
|
|
||||||
}
|
|
||||||
var y, a = document.querySelectorAll('input[name="type"]'),
|
|
||||||
b = document.querySelector("#super-search-fm"),
|
|
||||||
c = document.querySelector("#search-text"),
|
|
||||||
d = document.querySelector("#set-search-blank"),
|
|
||||||
e = document.querySelectorAll(".search-group"),
|
|
||||||
f = a[0];
|
|
||||||
for (g(), y = 0; y < a.length; y++) a[y].addEventListener("change", o);
|
|
||||||
d.addEventListener("change", q), b.addEventListener("submit", r)
|
|
||||||
}();
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
(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)" title="回到顶部" id="toTop" style="display:none;position:fixed;bottom:66px;right:15px;width:50px;height:50px;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);
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,28 +0,0 @@
|
||||||
<?php if(basename($_SERVER['PHP_SELF']) == basename(__FILE__)) header("Location:/"); include 'common.php';?>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="zh-CN" element::-webkit-scrollbar {display:none}>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"/>
|
|
||||||
<title><?php echo $conf['title']?></title>
|
|
||||||
<meta name="keywords" content="<?php echo $conf['keywords']?>">
|
|
||||||
<meta name="description" content="<?php echo $conf['description']?>">
|
|
||||||
<meta name="author" content="LyLme">
|
|
||||||
<link rel="icon" sizes="any" mask href="<?php echo $conf['logo']?>">
|
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
||||||
<meta name="apple-touch-fullscreen" content="yes">
|
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
||||||
<meta name="full-screen" content="yes">
|
|
||||||
<meta name="browsermode" content="application">
|
|
||||||
<meta name="x5-fullscreen" content="true">
|
|
||||||
<meta name="x5-page-mode" content="app">
|
|
||||||
<meta name="lsvn" content="MS4xLjE=">
|
|
||||||
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-2-M/jquery/3.5.1/jquery.min.js" type="application/javascript"></script>
|
|
||||||
<link href="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/4.5.3/css/bootstrap.min.css" type="text/css" rel="stylesheet">
|
|
||||||
<script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/4.5.3/js/bootstrap.min.js" type="application/javascript"></script>
|
|
||||||
<link rel="stylesheet" href="https://cdn.lylme.com/lylmes_page/<?php echo $conf['version']?>/assets/css/style.css" type="text/css">
|
|
||||||
<link rel="stylesheet" href="https://cdn.lylme.com/lylmes_page/<?php echo $conf['version']?>/assets/css/fontawesome-free5.13.0.css" type="text/css">
|
|
||||||
<link rel="stylesheet" href="./assets/css/font.css" type="text/css">
|
|
||||||
<script src="https://cdn.lylme.com/lylmes_page/<?php echo $conf['version']?>/assets/js/script.js"></script>
|
|
||||||
<script src="https://cdn.lylme.com/lylmes_page/<?php echo $conf['version']?>/assets/js/svg.js"></script>
|
|
||||||
</head>
|
|
125
include/home.php
125
include/home.php
|
@ -1,125 +0,0 @@
|
||||||
<?php
|
|
||||||
echo '<body onload="FocusOnInput()"><div class="banner-video">';
|
|
||||||
if ($conf['background'] == '') {
|
|
||||||
if (!file_exists('./assets/img/background.jpg')) {
|
|
||||||
echo '<img src="./assets/img/cron.php">';
|
|
||||||
} else {
|
|
||||||
echo '<img src="./assets/img/background.jpg">';
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
echo '<img src="' . $conf['background'] . '">';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<div class="bottom-cover" style="background-image: linear-gradient(rgba(255, 255, 255, 0) 0%, rgb(244 248 251 / 0.6) 50%, rgb(244 248 251) 100%);">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--topbar开始-->
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-light fixed-top" style="position: absolute; z-index: 10000;">
|
|
||||||
<!--<a class="navbar-brand" href="/"><img src="./assets/img/logo.png" height="25" title="六零起始页"></a>-->
|
|
||||||
<button class="navbar-toggler collapsed" style="border: none; outline: none;"type="button" data-toggle="collapse" data-target="#navbarsExample05" aria-controls="navbarsExample05" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
|
|
||||||
<svg class="icon" width="200" height="200"><use xlink:href="#icon-menus"></use></svg>
|
|
||||||
<span><svg class="bi bi-x" fill="currentColor" id="x"><use xlink:href="#icon-closes"></use></svg><span>
|
|
||||||
</button>
|
|
||||||
<div class="collapse navbar-collapse" id="navbarsExample05">
|
|
||||||
<ul class="navbar-nav mr-auto">
|
|
||||||
<?php
|
|
||||||
$tagslists = $DB->query("SELECT * FROM `lylme_tags`");
|
|
||||||
while ($taglists = $DB->fetch($tagslists)) {
|
|
||||||
echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"';
|
|
||||||
if ($taglists["tag_target"] == 1) echo ' target="_blant"';
|
|
||||||
echo '>' . $taglists["tag_name"] . '</a></li>
|
|
||||||
';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
<div id="main">
|
|
||||||
<div id="show_date"></div>
|
|
||||||
<div id="show_time"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if ($conf['tq'] != 'false') {
|
|
||||||
echo '<div id="he-plugin-simple"></div>
|
|
||||||
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</nav>
|
|
||||||
<!--topbar结束-->
|
|
||||||
<div class="container" style="margin-top:10vh; position: relative; z-index: 100;">
|
|
||||||
<?php
|
|
||||||
echo $conf['home-title'] ?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if ($conf['yan'] != 'false') {
|
|
||||||
$filename = './assets/data/data.dat'; //随机一言文件路径
|
|
||||||
if (file_exists($filename)) {
|
|
||||||
$data = explode(PHP_EOL, file_get_contents($filename));
|
|
||||||
$result = str_replace(array(
|
|
||||||
"\r",
|
|
||||||
"\n",
|
|
||||||
"\r\n"
|
|
||||||
) , '', $data[array_rand($data) ]);
|
|
||||||
echo '<p class="content"><b>随机一言:</b>' . $result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</p>
|
|
||||||
<!--搜索开始-->
|
|
||||||
<div id="search" class="s-search">
|
|
||||||
<div id="search-list" class="hide-type-list">
|
|
||||||
<div class="search-group group-a s-current" style=" margin-top: 50px;">
|
|
||||||
<ul class="search-type">
|
|
||||||
<?php
|
|
||||||
$soulists = $DB->query("SELECT * FROM `lylme_sou` ORDER BY `lylme_sou`.`sou_order` ASC");
|
|
||||||
while ($soulist = $DB->fetch($soulists)) {
|
|
||||||
if ($soulist["sou_st"] == 1) {
|
|
||||||
echo ' <li>
|
|
||||||
<input hidden="" checked="" type="radio" name="type" id="type-' . $soulist["sou_alias"] . '" value="';
|
|
||||||
if (checkmobile() == 'wap' && $soulist["sou_waplink"] != NULL) {
|
|
||||||
echo $soulist["sou_waplink"];
|
|
||||||
} else {
|
|
||||||
echo $soulist["sou_link"];
|
|
||||||
}
|
|
||||||
echo '"data-placeholder="' . $soulist["sou_hint"] . '">
|
|
||||||
<label for="type-' . $soulist["sou_alias"] . '" style="font-weight:600">
|
|
||||||
' . $soulist["sou_icon"] . '
|
|
||||||
<span style="color:' . $soulist["sou_color"] . '">
|
|
||||||
' . $soulist["sou_name"] . '
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<form action="https://www.baidu.com/s?wd=" method="get" target="_blank"
|
|
||||||
id="super-search-fm">
|
|
||||||
<input type="text" id="search-text" placeholder="百度一下,你就知道" style="outline:0"
|
|
||||||
autocomplete="off">
|
|
||||||
<button class="submit" type="submit">
|
|
||||||
<svg style="width: 22px; height: 22px; margin: 0 20px 0 20px; color: #fff;"
|
|
||||||
class="icon" aria-hidden="true">
|
|
||||||
<use xlink:href="#icon-sousuo">
|
|
||||||
</use>
|
|
||||||
</svg>
|
|
||||||
<span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<ul id="word" style="display: none;">
|
|
||||||
</ul>
|
|
||||||
</form>
|
|
||||||
<div class="set-check hidden-xs">
|
|
||||||
<input type="checkbox" id="set-search-blank" class="bubble-3" autocomplete="off">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
include "./include/list.php";
|
|
||||||
include "./include/footer.php";
|
|
||||||
?>
|
|
|
@ -1,52 +0,0 @@
|
||||||
<?php
|
|
||||||
// +----------------------------------------------------------+
|
|
||||||
// | LyLme Spage |
|
|
||||||
// +----------------------------------------------------------+
|
|
||||||
// | Copyright (c) 2022 LyLme |
|
|
||||||
// +----------------------------------------------------------+
|
|
||||||
// | File: list.php |
|
|
||||||
// +----------------------------------------------------------+
|
|
||||||
// | Authors: LyLme <admin@lylme.com> |
|
|
||||||
// | date: 2022-3-12 |
|
|
||||||
// +----------------------------------------------------------+
|
|
||||||
|
|
||||||
|
|
||||||
$links = $DB->query("SELECT * FROM `lylme_links`"); // 获取网站
|
|
||||||
$groups = $DB->query("SELECT * FROM `lylme_groups` ORDER BY `group_order` ASC"); // 获取分类
|
|
||||||
$i = 0;
|
|
||||||
while ($group = $DB->fetch($groups)) { //循环所有分组
|
|
||||||
$sql = "SELECT * FROM `lylme_links` WHERE `group_id` = " . $group['group_id'];
|
|
||||||
$group_links = $DB->query($sql);
|
|
||||||
$link_num = $DB->num_rows($group_links); // 获取返回字段条目数量
|
|
||||||
echo '<ul class="mylist row"><li class="title">' . $group["group_icon"] . '<sapn>' . $group["group_name"] . '</sapn></li>'; //输出分组图标和标题
|
|
||||||
if ($link_num == 0) {
|
|
||||||
echo '</ul>' . "\n";
|
|
||||||
$i = 0;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
while ($link = $DB->fetch($group_links)) { // 循环每个链接
|
|
||||||
// 返回指定分组下的所有字段
|
|
||||||
if ($link_num > $i) {
|
|
||||||
$i = $i + 1;
|
|
||||||
echo "\n" . '<li class="col-3 col-sm-3 col-md-3 col-lg-1"><a rel="nofollow" href="' . $link["url"] . '" target="_blank">';
|
|
||||||
if ($link["icon"] == '') {
|
|
||||||
echo '<img src="/assets/img/default-icon.png" alt="默认' . $link["name"] . '" />';
|
|
||||||
} else if (!preg_match("/^<svg*/", $link["icon"])) {
|
|
||||||
echo '<img src="' . $link["icon"] . '" alt="' . $link["name"] . '" />';
|
|
||||||
} else {
|
|
||||||
echo $link["icon"];
|
|
||||||
}
|
|
||||||
echo '<span>' . $link["name"] . '</span></a></li>';
|
|
||||||
//输出图标和链接
|
|
||||||
}
|
|
||||||
if ($link_num == $i) {
|
|
||||||
//判断当前分组链接循环完毕
|
|
||||||
echo '</ul>' . "\n"; //输出分类结束标签
|
|
||||||
$i = 0;
|
|
||||||
break; //重置$i为0跳出当前循环
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$DB->close();
|
|
||||||
?>
|
|
Loading…
Reference in New Issue