request count is fucked, still need to fix graph pissing me the fuck off

This commit is contained in:
2026-09-05 19:47:36 -04:00
parent be3abbef16
commit 1a4b91435a
7 changed files with 22 additions and 19 deletions
+5 -3
View File
@@ -118,7 +118,7 @@ class frontend{
return trim($html);
}
public function loadheader(array $get, array $filters, string $page){
public function loadheader(array $get, array $filters, string $page, bool $increment_bot_counter = true){
echo
$this->load("header.html", [
@@ -177,13 +177,15 @@ class frontend{
){
// bot detected !!
apcu_inc(intdiv(time(), 3600) . ".bot_requests", 1, $s, 262800);
if($increment_bot_counter){
apcu_inc(intdiv(time(), 3600) . ".bot_requests", 1, $s, 262800);
}
$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>.'
);
die();
}
}