diff options
author | Squibid <me@zacharyscheiman.com> | 2023-10-30 18:39:32 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-10-30 18:39:32 -0400 |
commit | ad842b7b2ce1f9dce24d42f67fc6f07ccd0e5563 (patch) | |
tree | 9ad3e0aec63e889c1b242ac1f402e3372da67450 /view.php | |
parent | c75861db6ad9427c4ebf68d347e968e5f7b8caca (diff) | |
download | wallheaven-ad842b7b2ce1f9dce24d42f67fc6f07ccd0e5563.tar.gz wallheaven-ad842b7b2ce1f9dce24d42f67fc6f07ccd0e5563.tar.bz2 wallheaven-ad842b7b2ce1f9dce24d42f67fc6f07ccd0e5563.zip |
now mobile friendly(ish)
Diffstat (limited to '')
-rw-r--r-- | view.php | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -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> |