diff options
author | Squibid <me@zacharyscheiman.com> | 2023-09-22 18:08:37 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-09-22 18:08:37 -0400 |
commit | 472092fe43ad7da9feb4a8c0b4bf216b20c063b9 (patch) | |
tree | 6200ad064861b167684483c38e7db9ad05519e7e /index.php | |
download | wallheaven-472092fe43ad7da9feb4a8c0b4bf216b20c063b9.tar.gz wallheaven-472092fe43ad7da9feb4a8c0b4bf216b20c063b9.tar.bz2 wallheaven-472092fe43ad7da9feb4a8c0b4bf216b20c063b9.zip |
inital commit
Diffstat (limited to '')
-rw-r--r-- | index.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/index.php b/index.php new file mode 100644 index 0000000..a005d7f --- /dev/null +++ b/index.php @@ -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> |