removed visitors feature

This commit is contained in:
2024-04-12 16:10:33 +02:00
parent 12c6c665fc
commit c892ef5b6e
10 changed files with 4 additions and 223 deletions

View File

@@ -139,18 +139,6 @@ class Context {
return false;
}
public function processVisit(): void {
if (isset($_COOKIE["PHPSESSID"]) && !empty($_COOKIE["PHPSESSID"])) {
if ($this->isBot()) {
return;
}
$cookie = $_COOKIE["PHPSESSID"];
$req = new \Core\API\Visitors\ProcessVisit($this);
$req->execute(["cookie" => $cookie]);
}
}
private function isBot(): bool {
if (empty($_SERVER["HTTP_USER_AGENT"])) {
return false;