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:
parent
573a11a708
commit
0f2f97e5a3
1 changed files with 2 additions and 4 deletions
|
@ -117,11 +117,9 @@ class frontend{
|
||||||
// bot detected !!
|
// bot detected !!
|
||||||
apcu_inc("captcha_gen");
|
apcu_inc("captcha_gen");
|
||||||
|
|
||||||
$null = null;
|
|
||||||
$this->drawerror(
|
$this->drawerror(
|
||||||
"Tshh, blocked!",
|
"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 4get instance. If this is an error, please <a href="/about">contact the administrator</a>.'
|
||||||
microtime(true)
|
|
||||||
);
|
);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
@ -144,7 +142,7 @@ class frontend{
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function drawscrapererror($error, $get, $target, $timetaken){
|
public function drawscrapererror($error, $get, $target, $timetaken = microtime(true)){
|
||||||
|
|
||||||
$this->drawerror(
|
$this->drawerror(
|
||||||
"Shit",
|
"Shit",
|
||||||
|
|
Loading…
Reference in a new issue