From 022bbe22b4497afe5e06608129ee56a958634f51 Mon Sep 17 00:00:00 2001 From: LyLme Date: Sat, 19 Mar 2022 21:52:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/footer.php | 119 ------------------------------------------ include/head.php | 28 ---------- include/home.php | 125 --------------------------------------------- include/list.php | 52 ------------------- 4 files changed, 324 deletions(-) delete mode 100644 include/footer.php delete mode 100644 include/head.php delete mode 100644 include/home.php delete mode 100644 include/list.php diff --git a/include/footer.php b/include/footer.php deleted file mode 100644 index 7af6bc8..0000000 --- a/include/footer.php +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/include/head.php b/include/head.php deleted file mode 100644 index bddc742..0000000 --- a/include/head.php +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - <?php echo $conf['title']?> - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/include/home.php b/include/home.php deleted file mode 100644 index c0efb11..0000000 --- a/include/home.php +++ /dev/null @@ -1,125 +0,0 @@ - - - - -
- - -随机一言:' . $result; - } -} -?> -

- - - - diff --git a/include/list.php b/include/list.php deleted file mode 100644 index e6089dc..0000000 --- a/include/list.php +++ /dev/null @@ -1,52 +0,0 @@ - | -// | 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 '' . "\n"; - $i = 0; - continue; - } - while ($link = $DB->fetch($group_links)) { // 循环每个链接 - // 返回指定分组下的所有字段 - if ($link_num > $i) { - $i = $i + 1; - echo "\n" . '
  • '; - if ($link["icon"] == '') { - echo '默认' . $link['; - } else if (!preg_match("/^'; - } else { - echo $link["icon"]; - } - echo '' . $link["name"] . '
  • '; - //输出图标和链接 - } - if ($link_num == $i) { - //判断当前分组链接循环完毕 - echo '' . "\n"; //输出分类结束标签 - $i = 0; - break; //重置$i为0跳出当前循环 - - } - } -} -$DB->close(); -?>