summaryrefslogtreecommitdiffstats
path: root/prog/sear.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-01-11 01:55:17 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2024-01-11 01:55:17 +0100
commitc81022f8b886b2a3d8986ad9026885094973fe37 (patch)
tree76b10be0224d3f0a9375fe5a1f5c111390233a6d /prog/sear.php
parentše zobke si umijem (diff)
downloadr-c81022f8b886b2a3d8986ad9026885094973fe37.tar
r-c81022f8b886b2a3d8986ad9026885094973fe37.tar.gz
r-c81022f8b886b2a3d8986ad9026885094973fe37.tar.bz2
r-c81022f8b886b2a3d8986ad9026885094973fe37.tar.lz
r-c81022f8b886b2a3d8986ad9026885094973fe37.tar.xz
r-c81022f8b886b2a3d8986ad9026885094973fe37.tar.zst
r-c81022f8b886b2a3d8986ad9026885094973fe37.zip
Diffstat (limited to '')
-rw-r--r--prog/sear.php/index.php2
-rw-r--r--prog/sear.php/osdd.xml1
2 files changed, 1 insertions, 2 deletions
diff --git a/prog/sear.php/index.php b/prog/sear.php/index.php
index fc08c68..58d5600 100644
--- a/prog/sear.php/index.php
+++ b/prog/sear.php/index.php
@@ -291,7 +291,7 @@ if (!empty($_REQUEST["f"])) {
if ($q == null) {
die(template("", "iskalnik sear.php", "dobrodošli v iskalniku sear.php, naslednjiku programa sear.c. za iskanje po spletu nekaj vnesite v iskalno vrstico zgoraj in pritisnite na gumb."));
}
-try_query_google($q, $image, $exact);
+$response = try_query_google($q, $image, $exact);
if ($response["status"] != true) {
if ($response["code"] == "captcha") {
foreach (["http://searc.oliwerix.com/sear.php?ref=b"] as $fallback) {
diff --git a/prog/sear.php/osdd.xml b/prog/sear.php/osdd.xml
index 3b8b504..8ef499d 100644
--- a/prog/sear.php/osdd.xml
+++ b/prog/sear.php/osdd.xml
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
- percent percent. -->
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" >
<ShortName>sear.c @ REPLACEME</ShortName>
<Description>sear.c @ REPLACEME</Description>