From 3efd5abba7b9607f0d7474b5e3d15f63367126e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Fri, 13 Dec 2024 11:26:05 +0800 Subject: [PATCH] Delete tooot.php --- tooot.php | 163 ------------------------------------------------------ 1 file changed, 163 deletions(-) delete mode 100644 tooot.php diff --git a/tooot.php b/tooot.php deleted file mode 100644 index 9fc2415..0000000 --- a/tooot.php +++ /dev/null @@ -1,163 +0,0 @@ - -need('header.php'); ?> -
-
-

title() ?>

-

content(); ?>

-
-
- - fields->tooot ? $this->fields->tooot : 'https://bbapi.ima.cm'; - -// 获取当前页码,默认为第一页 -$page = isset($_GET['page']) ? (int)$_GET['page'] : 1; - -// 每页显示的数量 -$limit = 20; - -// 计算偏移量 -$offset = ($page - 1) * $limit; - -// 使用 file_get_contents 获取数据 -$data = file_get_contents($tooot); -$toots = json_decode($data, true); - -// 只获取当前页的数据 -$tootsToShow = array_slice($toots, $offset, $limit); - -// 初始化 Parsedown -$parsedown = new Parsedown(); -?> - - - - -
- -
-
-
- - -
-
- text($toot['content']); ?> -
- - - - - -
-
-
-
- -
- - - -
- -
-need('footer.php'); ?> \ No newline at end of file