From 2b15ee9eae6a98fba871b4c587cdd8cfc1b1b48a Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sat, 18 Sep 2021 12:20:59 +0100 Subject: Beginning of rewrite --- public/index.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 public/index.php (limited to 'public/index.php') diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..df80ef3 --- /dev/null +++ b/public/index.php @@ -0,0 +1,27 @@ +load(); + +if ($tag !== null) { + $bookmarks->filter($tag); +} + +$bookmarks->sort($sort === 'asc'); + +foreach ($bookmarks as $bookmark) { + echo $bookmark->url.' '.$bookmark->addedAt."
"; +} -- cgit v1.2.3-13-gbd6f