diff options
Diffstat (limited to 'lib/frontend.php')
-rw-r--r-- | lib/frontend.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/frontend.php b/lib/frontend.php index 003c7cf..a127989 100644 --- a/lib/frontend.php +++ b/lib/frontend.php @@ -169,7 +169,7 @@ class frontend{ } $payload .= - htmlspecialchars($site["title"]) . + $this->highlighttext($keywords, $site["title"]) . '</div>'; if($greentext !== null){ @@ -903,6 +903,7 @@ class frontend{ "display" => "Scraper", "option" => [ "yt" => "YouTube", + "fb" => "Facebook videos", "ddg" => "DuckDuckGo", "brave" => "Brave"//, //"google" => "Google" @@ -972,6 +973,11 @@ class frontend{ $lib = new google(); break; + case "fb": + include "scraper/facebook.php"; + $lib = new facebook(); + break; + case "mojeek": include "scraper/mojeek.php"; $lib = new mojeek(); @@ -1269,6 +1275,14 @@ class frontend{ continue; } + if( + $key == "older" || + $key == "newer" + ){ + + $value = date("Y-m-d", (int)$value); + } + $out[$key] = $value; } |