remove old apikey checker

This commit is contained in:
2023-10-09 09:03:06 -04:00
parent 5c80111da6
commit 90c0f3e92d

View File

@ -22,10 +22,6 @@
printf("<meta property='twitter:card' content='summary_large_image'>"); printf("<meta property='twitter:card' content='summary_large_image'>");
/* get wallpaper id and get info from api */ /* get wallpaper id and get info from api */
preg_match("/(?!.*-)([A-Za-z0-9]+)/", $_POST['wall'], $matches); 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"); $res = getwallpaper("https://wallhaven.cc/api/v1/w/$matches[0]?apikey=$apikey");
?> ?>
<div id='wallmaster'> <div id='wallmaster'>