aboutsummaryrefslogtreecommitdiffstats
path: root/view.php
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-10-30 18:39:32 -0400
committerSquibid <me@zacharyscheiman.com>2023-10-30 18:39:32 -0400
commitad842b7b2ce1f9dce24d42f67fc6f07ccd0e5563 (patch)
tree9ad3e0aec63e889c1b242ac1f402e3372da67450 /view.php
parentc75861db6ad9427c4ebf68d347e968e5f7b8caca (diff)
downloadwallheaven-ad842b7b2ce1f9dce24d42f67fc6f07ccd0e5563.tar.gz
wallheaven-ad842b7b2ce1f9dce24d42f67fc6f07ccd0e5563.tar.bz2
wallheaven-ad842b7b2ce1f9dce24d42f67fc6f07ccd0e5563.zip
now mobile friendly(ish)
Diffstat (limited to '')
-rw-r--r--view.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/view.php b/view.php
index 006ead2..5ebdb39 100644
--- a/view.php
+++ b/view.php
@@ -25,6 +25,20 @@
$res = getwallpaper("https://wallhaven.cc/api/v1/w/$matches[0]?apikey=$apikey");
?>
<div id='wallmaster'>
+<div id='bwallpaperview'>
+<?php
+ if ($_GET['p'] == "nsfw" && !$apikey)
+ printf("<p id='error'>Server doesn't have an apikey, cannot view image.</p>");
+?>
+ <div>
+ <label>
+ <input type="checkbox">
+ <?php
+ printf("<img src='/proxy.php?i=%s'>\n", $_POST['wall']);
+ ?>
+ </label>
+ </div>
+</div>
<div id='wallpaperinfo'>
<div id='uploader'>
<?php
@@ -50,18 +64,4 @@
</details>
<hr>
</div>
-<div id='bwallpaperview'>
-<?php
- if ($_GET['p'] == "nsfw" && !$apikey)
- printf("<p id='error'>Server doesn't have an apikey, cannot view image.</p>");
-?>
- <div>
- <label>
- <input type="checkbox">
- <?php
- printf("<img src='/proxy.php?i=%s'>\n", $_POST['wall']);
- ?>
- </label>
- </div>
-</div>
</div>