cleanup some unneeded things

This commit is contained in:
2023-10-09 09:05:46 -04:00
parent 90c0f3e92d
commit 333a112ff6
4 changed files with 3 additions and 6 deletions

View File

@ -10,7 +10,6 @@
60 => 'minute',
];
$numunits;
foreach ($timeunits as $unit => $text) {
if ($time < $unit)
continue;

View File

@ -8,9 +8,8 @@
die();
}
try {
if (!isset($_GET["s"]) || $_GET["s"] == "original") {
if (!isset($_GET["s"]) || $_GET["s"] == "original")
$proxy->stream_linear_image($_GET["i"]);
}
} catch (Exception $error) {
header("X-Error: " . $error->getMessage());
$proxy->do404();

View File

@ -15,7 +15,6 @@
printf("<head>\n<title>WallHeaven - Viewing A Wallpaper</title>\n", $_GET["w"]);
printf("<meta name='description' content='Wallpaper id:%s'>\n", $_GET["w"]);
}
?>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="/style/style.css">
@ -24,7 +23,7 @@
<a href="/" id="header"><h3>Wall<span id="heaven">Heaven</span></h3></a>
<div id="searchbox">
<form action="/query.php" method="GET">\n
GFG;
<?php
printf("<input type='text' placeholder='Search...' name='q' value='%s'>\n", $_GET["q"]);
printf("<div id='options'>\n");
printf(" <input type='checkbox' name='SFW' id='SFW' %s>\n", $SFW);

View File

@ -68,7 +68,7 @@ h1, #header {
margin-right: 10px;
padding: 10px;
float: left;
overflow-y: auto;
overflow: auto;
background-color: #1a1a1a;
color: #fff;
}