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(); -?>