inital commit
This commit is contained in:
39
index.php
Normal file
39
index.php
Normal file
@ -0,0 +1,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>
|
Reference in New Issue
Block a user