blob: a005d7ff92bd0ca230b8418e9c752ed2114ef0a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php $config = require('config.php'); ?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>WallHeaven</title>
<meta name="description" content="Wallpaper proxy">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="/style/style.css">
<meta charset="utf-8">
</head>
<body>
<h1 id="header" style="font-size: 5em;">Wall<span id="heaven">Heaven</span></h1>
<div id="searchbox">
<form action="/query.php" method="GET">
<input type="text" placeholder="Search..." name="q">
<br>
<br>
<div id="options">
<input type="checkbox" name="SFW" id="SFW">
<label for="SFW">SFW</label>
<input type="checkbox" name="Sketchy" id="Sketchy">
<label for="Sketchy">Sketchy</label>
<?php
if ($config["frontends"]["wallhaven"]["apikey"]) {
printf("<input type='checkbox' name='NSFW' id='NSFW'>\n");
printf("<label for='NSFW'>NSFW</label>\n");
}
?>
<input type="checkbox" name="General" id="General">
<label for="General">General</label>
<input type="checkbox" name="Anime" id="Anime">
<label for="Anime">Anime</label>
<input type="checkbox" name="People" id="People">
<label for="People">People</label>
</div>
</form>
</div>
</body>
</html>
|