From 1c65183651962e7c91097d3ffd29cfb24b3a6bee Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 19 Jan 2025 19:25:43 +0200 Subject: feat: Add archive page --- controllers/archive.php | 10 ++++++++++ views/archive/index.php | 24 ++++++++++++++++++++++++ views/home/index.php | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 controllers/archive.php create mode 100644 views/archive/index.php diff --git a/controllers/archive.php b/controllers/archive.php new file mode 100644 index 0000000..a54387b --- /dev/null +++ b/controllers/archive.php @@ -0,0 +1,10 @@ +incrementVisits(); + } + catch(Exception $e) {} +} diff --git a/views/archive/index.php b/views/archive/index.php new file mode 100644 index 0000000..7e85c70 --- /dev/null +++ b/views/archive/index.php @@ -0,0 +1,24 @@ + + + + + URL) as $page): ?> +
+ Date ?> +
+ + + +

This page hasn't been archived yet!

+
+ "> + +
+ + diff --git a/views/home/index.php b/views/home/index.php index 33f123d..4883a91 100644 --- a/views/home/index.php +++ b/views/home/index.php @@ -4,7 +4,7 @@

Explore the archives or add a new page

-
+
-- cgit v1.2.3