cleanup some unneeded things
This commit is contained in:
@ -10,7 +10,6 @@
|
|||||||
60 => 'minute',
|
60 => 'minute',
|
||||||
];
|
];
|
||||||
|
|
||||||
$numunits;
|
|
||||||
foreach ($timeunits as $unit => $text) {
|
foreach ($timeunits as $unit => $text) {
|
||||||
if ($time < $unit)
|
if ($time < $unit)
|
||||||
continue;
|
continue;
|
||||||
|
@ -8,9 +8,8 @@
|
|||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (!isset($_GET["s"]) || $_GET["s"] == "original") {
|
if (!isset($_GET["s"]) || $_GET["s"] == "original")
|
||||||
$proxy->stream_linear_image($_GET["i"]);
|
$proxy->stream_linear_image($_GET["i"]);
|
||||||
}
|
|
||||||
} catch (Exception $error) {
|
} catch (Exception $error) {
|
||||||
header("X-Error: " . $error->getMessage());
|
header("X-Error: " . $error->getMessage());
|
||||||
$proxy->do404();
|
$proxy->do404();
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
printf("<head>\n<title>WallHeaven - Viewing A Wallpaper</title>\n", $_GET["w"]);
|
printf("<head>\n<title>WallHeaven - Viewing A Wallpaper</title>\n", $_GET["w"]);
|
||||||
printf("<meta name='description' content='Wallpaper id:%s'>\n", $_GET["w"]);
|
printf("<meta name='description' content='Wallpaper id:%s'>\n", $_GET["w"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<link rel="stylesheet" href="/style/style.css">
|
<link rel="stylesheet" href="/style/style.css">
|
||||||
@ -24,7 +23,7 @@
|
|||||||
<a href="/" id="header"><h3>Wall<span id="heaven">Heaven</span></h3></a>
|
<a href="/" id="header"><h3>Wall<span id="heaven">Heaven</span></h3></a>
|
||||||
<div id="searchbox">
|
<div id="searchbox">
|
||||||
<form action="/query.php" method="GET">\n
|
<form action="/query.php" method="GET">\n
|
||||||
GFG;
|
<?php
|
||||||
printf("<input type='text' placeholder='Search...' name='q' value='%s'>\n", $_GET["q"]);
|
printf("<input type='text' placeholder='Search...' name='q' value='%s'>\n", $_GET["q"]);
|
||||||
printf("<div id='options'>\n");
|
printf("<div id='options'>\n");
|
||||||
printf(" <input type='checkbox' name='SFW' id='SFW' %s>\n", $SFW);
|
printf(" <input type='checkbox' name='SFW' id='SFW' %s>\n", $SFW);
|
||||||
|
@ -68,7 +68,7 @@ h1, #header {
|
|||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
float: left;
|
float: left;
|
||||||
overflow-y: auto;
|
overflow: auto;
|
||||||
background-color: #1a1a1a;
|
background-color: #1a1a1a;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user