From 90c0f3e92db08ac780cbc48ac5eca570ee9350ce Mon Sep 17 00:00:00 2001 From: Squibid Date: Mon, 9 Oct 2023 09:03:06 -0400 Subject: remove old apikey checker --- view.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'view.php') diff --git a/view.php b/view.php index 5b8c5aa..e2e5d69 100644 --- a/view.php +++ b/view.php @@ -22,10 +22,6 @@ printf(""); /* get wallpaper id and get info from api */ preg_match("/(?!.*-)([A-Za-z0-9]+)/", $_POST['wall'], $matches); - if ($_POST['purity'] === "nsfw") - $apikey = $config["frontends"]["wallhaven"]["apikey"]; - else - $apikey = ""; $res = getwallpaper("https://wallhaven.cc/api/v1/w/$matches[0]?apikey=$apikey"); ?>
-- cgit v1.2.1