mirror of https://git.lolcat.ca/lolcat/4get.git
Compare commits
3 Commits
573a11a708
...
12b67af69c
Author | SHA1 | Date |
---|---|---|
lolcat | 12b67af69c | |
lolcat | dd3469aeb6 | |
lolcat | 0f2f97e5a3 |
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue