aboutsummaryrefslogtreecommitdiffstats
path: root/query.php
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-10-09 08:58:45 -0400
committerSquibid <me@zacharyscheiman.com>2023-10-09 08:58:45 -0400
commit16cb41ee3920c12a27c3009543d1cc7a3573e9e7 (patch)
tree0b53bf767ff05d19a6d6f9fd9ab3d75b2ef89e2f /query.php
parent44d6eb8d45f13183183d7793fb6ff50c11a16cda (diff)
downloadwallheaven-16cb41ee3920c12a27c3009543d1cc7a3573e9e7.tar.gz
wallheaven-16cb41ee3920c12a27c3009543d1cc7a3573e9e7.tar.bz2
wallheaven-16cb41ee3920c12a27c3009543d1cc7a3573e9e7.zip
make wallpaper query work without forms
Diffstat (limited to 'query.php')
-rw-r--r--query.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/query.php b/query.php
index 1b7b7c1..9722bb6 100644
--- a/query.php
+++ b/query.php
@@ -26,12 +26,8 @@
if (!$res[0])
printf("No Results Found :(");
else
- foreach($res[0] as $walls) {
- printf("<form action='/view.php' method='POST'>\n");
- printf("<input type='hidden' name='purity' value='%s'/>\n", $walls["purity"]);
- printf("<button name=wall value='%s' data-value='%s'><img id='%s' width=307 height=206 src=/proxy.php?i=%s></button>\n", $walls["path"], $walls["purity"], $walls["purity"], $walls["thumbs"]["small"]);
- printf("</form>\n");
- }
+ foreach($res[0] as $walls)
+ printf("<a href='/view.php?w=%s&p=%s'><img id='%s' width=307 height=206 src=/proxy.php?i=%s loading='lazy'></a>", $walls["id"], $walls["purity"], $walls["purity"], $walls["thumbs"]["small"]);
printf("</div>\n");
/* page numbers */