1
Fork 1
mirror of https://git.lolcat.ca/lolcat/4get.git synced 2024-11-08 17:43:07 -05:00

error handling bug

This commit is contained in:
lolcat 2024-03-30 00:03:41 -04:00
parent 573a11a708
commit 0f2f97e5a3

View file

@ -117,11 +117,9 @@ 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();
}
@ -144,7 +142,7 @@ class frontend{
die();
}
public function drawscrapererror($error, $get, $target, $timetaken){
public function drawscrapererror($error, $get, $target, $timetaken = microtime(true)){
$this->drawerror(
"Shit",