From 9a00f053576e829eeefea586e5b74f67eb851f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 14 May 2024 22:25:30 +0200 Subject: searphp fix --- prog/sear.php/index.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'prog') 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 = " - => - 1. - [^] + + + "; if ($imgfirst) { $buttons = " - [^] - => - 1. + + + "; } return " -- cgit v1.2.3