Compare commits

...

3 Commits

Author SHA1 Message Date
lolcat 12b67af69c can you just be fixed you fucking piece of shit 2024-03-30 00:25:19 -04:00
lolcat dd3469aeb6 error handling bug again 2024-03-30 00:06:05 -04:00
lolcat 0f2f97e5a3 error handling bug 2024-03-30 00:03:41 -04:00
1 changed files with 13 additions and 5 deletions

View File

@ -117,17 +117,20 @@ class frontend{
// bot detected !!
apcu_inc("captcha_gen");
$null = null;
$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>.',
microtime(true)
'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();
}
}
public function drawerror($title, $error, $timetaken){
public function drawerror($title, $error, $timetaken = null){
if($timetaken === null){
$timetaken = microtime(true);
}
echo
$this->load("search.html", [
@ -144,7 +147,12 @@ class frontend{
die();
}
public function drawscrapererror($error, $get, $target, $timetaken){
public function drawscrapererror($error, $get, $target, $timetaken = null){
if($timetaken === null){
$timetaken = microtime(true);
}
$this->drawerror(
"Shit",