getscraperfilters("images"); $get = $frontend->parsegetfilters($_GET, $filters); /* Captcha */ include "lib/bot_protection.php"; new bot_protection($frontend, $get, $filters, "images", true); $payload = [ "timetaken" => microtime(true), "images" => "", "nextpage" => "" ]; try{ $results = $scraper->image($get); }catch(Exception $error){ $frontend->drawscrapererror($error->getMessage(), $get, "images", $payload["timetaken"]); } if(count($results["image"]) === 0){ $payload["images"] = '
' . "

Nobody here but us chickens!

" . 'Have you tried:' . '' . '
'; } foreach($results["image"] as $image){ $payload["images"] .= '
' . '
' . '' . 'thumbnail'; if($image["source"][0]["width"] !== null){ $payload["images"] .= '
' . $image["source"][0]["width"] . 'x' . $image["source"][0]["height"] . '
'; } $payload["images"] .= '
' . '' . '
' . htmlspecialchars(parse_url($image["url"], PHP_URL_HOST)) . '
' . '
' . $frontend->highlighttext($get["s"], $image["title"]) . '
' . '
' . '
' . '
'; } if($results["npt"] !== null){ $payload["nextpage"] = 'Next page >'; } echo $frontend->load("images.html", $payload);