40 lines
1.4 KiB
PHP
40 lines
1.4 KiB
PHP
<?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"><input type='submit' value='Go'>
|
|
<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>
|