From a993afcf42634629192e10e4434271aef7aa6565 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Sun, 11 Aug 2024 09:43:53 +0300 Subject: [PATCH] feat: Add download button --- api/index.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/index.php b/api/index.php index 4a545ee..68271c1 100644 --- a/api/index.php +++ b/api/index.php @@ -59,6 +59,8 @@ function displayImage($url, $userAgent, $redirect) exit($contents); } +$VERSION = "2023.04"; + $REPO = "DenverCoder1/minimalistic-wallpaper-collection"; $BRANCH_NAME = "main"; @@ -97,6 +99,8 @@ function displayImage($url, $userAgent, $redirect) $random_image_path = $images[array_rand($images)]["download_url"]; displayImage($random_image_path, $REPO, $redirect); } + +$download_zip_url = "https://github.com/{$REPO}/archive/refs/tags/{$VERSION}.zip"; ?> @@ -230,6 +234,12 @@ function displayImage($url, $userAgent, $redirect) + + + + + +