Switched to new domain

FOSS-Q is the new domain for this search.
This commit is contained in:
FbIN Support 2025-12-20 23:08:36 +05:30
commit aaa853f5a0
2 changed files with 135 additions and 135 deletions

View file

@ -135,7 +135,7 @@ class frontend{
$this->drawerror(
"Tshh, blocked!",
'Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please <a href="/about">contact the administrator</a>.'
'Your browser, IP or IP range has been blocked from this FOSS-Q instance. If this is an error, please <a href="/about">contact the administrator</a>.'
);
die();
}
@ -178,7 +178,7 @@ class frontend{
'<ul>' .
'<li>Use a different scraper</li>' .
'<li>Remove keywords that could cause errors</li>' .
'<li><a href="/instances?target=' . $target . "&" . $this->buildquery($get, false) . '">Try your search on another 4get instance</a></li>' .
'<li><a href="/instances?target=' . $target . "&" . $this->buildquery($get, false) . '">Try your search on another FOSS-Q instance</a></li>' .
'</ul><br>' .
'If the error persists, please <a href="/about">contact the administrator</a>.',
$timetaken
@ -1350,7 +1350,7 @@ class frontend{
return htmlspecialchars($image);
}
//return "https://4g.flossboxin.org.in/proxy?i=" . urlencode($image) . "&s=" . $format;
//return "https://fossq.com/proxy?i=" . urlencode($image) . "&s=" . $format;
return "/proxy?i=" . urlencode($image) . "&s=" . $format;
}

View file

@ -9,7 +9,7 @@
if(!empty($bang)){
// !youtube
$conn = pg_connect("host=localhost dbname=4get user=postgres password=postgres");
$conn = pg_connect("host=localhost dbname=fossq user=postgres password=postgres");
pg_prepare($conn, "bang_get", "SELECT bang,name FROM bangs WHERE bang LIKE $1 ORDER BY bang ASC LIMIT 8");
$q = pg_execute($conn, "bang_get", ["$bang%"]);
@ -77,7 +77,7 @@
if(!empty($bang)){
// check if the bang exists
$conn = pg_connect("host=localhost dbname=4get user=postgres password=postgres");
$conn = pg_connect("host=localhost dbname=fossq user=postgres password=postgres");
pg_prepare($conn, "bang_get_single", "SELECT bang,name FROM bangs WHERE bang = $1 LIMIT 1");
$q = pg_execute($conn, "bang_get_single", [$bang]);