remove old apikey checker
This commit is contained in:
parent
5c80111da6
commit
90c0f3e92d
1 changed files with 0 additions and 4 deletions
4
view.php
4
view.php
|
|
@ -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'>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue