summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-14 22:25:30 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-14 22:25:30 +0200
commit9a00f053576e829eeefea586e5b74f67eb851f59 (patch)
treefd1e4a3f239690f8b0481449e0e932dca7652ff3
parentsearphp nokia 6020 friendly (button->inputsubmit) (diff)
downloadr-master.tar
r-master.tar.gz
r-master.tar.bz2
r-master.tar.lz
r-master.tar.xz
r-master.tar.zst
r-master.zip
-rw-r--r--prog/sear.php/index.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/prog/sear.php/index.php b/prog/sear.php/index.php
index 9b9cbd4..8e48d95 100644
--- a/prog/sear.php/index.php
+++ b/prog/sear.php/index.php
@@ -59,7 +59,6 @@ function query_google ($s, $image = false, $noredirect = false, $bindstring = fa
}
$results = [];
$x = new DOMDocument();
- // file_put_contents("/tmp/x", $txtdoc);
$txtdoc = mb_convert_encoding($txtdoc, "ISO-8859-1");
$x->loadHTML($txtdoc);
if ($image)
@@ -122,15 +121,15 @@ function template ($title, $queryinfo, $body, $query = "", $additionalform = "",
$query = htmlspecialchars($query);
$title = htmlspecialchars($title);
$buttons = "
- <input type=submit value=🔍 ><span>=&gt;</span></button>
- <input type=submit accesskey=f type=submit name=f value=Ʊ ><span>1.</span></button>
- <input type=submit accesskey=i type=submit name=i value=🖼><span>[^]</span></button>
+ <input type=submit value=🔍 /> <!-- =&gt; -->
+ <input type=submit accesskey=f type=submit name=f value=Ʊ /> <!-- 1. -->
+ <input type=submit accesskey=i type=submit name=i value=🖼 /> <!-- [^] -->
";
if ($imgfirst) {
$buttons = "
- <input type=submit name=i value=🖼><span>[^]</span></button>
- <input type=submit accesskey=i type=submit value=🔍 ><span>=&gt;</span></button>
- <input type=submit accesskey=f type=submit name=f value=Ʊ ><span>1.</span></button>
+ <input type=submit accesskey=i type=submit name=i value=🖼 /> <!-- [^] -->
+ <input type=submit value=🔍 /> <!-- =&gt; -->
+ <input type=submit accesskey=f type=submit name=f value=Ʊ /> <!-- 1. -->
";
}
return "