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 !!
|
// 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function drawerror($title, $error, $timetaken){
|
public function drawerror($title, $error, $timetaken = null){
|
||||||
|
|
||||||
|
if($timetaken === null){
|
||||||
|
|
||||||
|
$timetaken = microtime(true);
|
||||||
|
}
|
||||||
|
|
||||||
echo
|
echo
|
||||||
$this->load("search.html", [
|
$this->load("search.html", [
|
||||||
|
@ -144,7 +147,12 @@ class frontend{
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function drawscrapererror($error, $get, $target, $timetaken){
|
public function drawscrapererror($error, $get, $target, $timetaken = null){
|
||||||
|
|
||||||
|
if($timetaken === null){
|
||||||
|
|
||||||
|
$timetaken = microtime(true);
|
||||||
|
}
|
||||||
|
|
||||||
$this->drawerror(
|
$this->drawerror(
|
||||||
"Shit",
|
"Shit",
|
||||||
|
|
Loading…
Reference in New Issue