summaryrefslogtreecommitdiff
path: root/lib/frontend.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2023-11-27 01:01:56 -0500
committerlolcat <will@lolcat.ca>2023-11-27 01:01:56 -0500
commit2519666e1c831f85836f9ce6d975d3ceb975c09d (patch)
tree86c68604aff9c7a0a430e70ef082195a4c3a717f /lib/frontend.php
parent9fd993b47b8c1b6e3c9d9f0e8d43a85860230f59 (diff)
google web, videos and news, various other fixes
Diffstat (limited to 'lib/frontend.php')
-rw-r--r--lib/frontend.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/frontend.php b/lib/frontend.php
index 0f9f95d..bef12aa 100644
--- a/lib/frontend.php
+++ b/lib/frontend.php
@@ -25,7 +25,7 @@ class frontend{
if($theme != "Dark"){
- $replacements["style"] = '<link rel="stylesheet" href="/static/themes/' . $theme . '.css?v' . config::VERSION . '">';
+ $replacements["style"] = '<link rel="stylesheet" href="/static/themes/' . rawurlencode($theme) . '.css?v' . config::VERSION . '">';
}else{
$replacements["style"] = "";
@@ -84,6 +84,8 @@ class frontend{
){
// bot detected !!
+ apcu_inc("captcha_gen");
+
$this->drawerror(
"Tshh, blocked!",
'You were blocked from viewing this page. If you wish to scrape data from 4get, please consider running <a href="https://git.lolcat.ca/lolcat/4get" rel="noreferrer nofollow">your own 4get instance</a> or using <a href="/api.txt">the API</a>.',
@@ -889,7 +891,7 @@ class frontend{
"ddg" => "DuckDuckGo",
"brave" => "Brave",
"yandex" => "Yandex",
- //"google" => "Google",
+ "google" => "Google",
"mojeek" => "Mojeek",
"marginalia" => "Marginalia",
"wiby" => "wiby"
@@ -921,8 +923,8 @@ class frontend{
//"fb" => "Facebook videos",
"ddg" => "DuckDuckGo",
"brave" => "Brave",
- "yandex" => "Yandex"
- //"google" => "Google"
+ "yandex" => "Yandex",
+ "google" => "Google"
]
];
break;
@@ -933,7 +935,7 @@ class frontend{
"option" => [
"ddg" => "DuckDuckGo",
"brave" => "Brave",
- //"google" => "Google",
+ "google" => "Google",
"mojeek" => "Mojeek"
]
];