aboutsummaryrefslogtreecommitdiffstats
path: root/view.php
diff options
context:
space:
mode:
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>