Skip to content
Snippets Groups Projects
Commit 3f181458 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Update MetaGer.php

parent 666f5af3
No related branches found
No related tags found
2 merge requests!1168Development,!1167Useragent fix
......@@ -37,6 +37,7 @@ class MetaGer
protected $canCache = false;
# Daten über die Abfrage$
protected $ip;
protected $useragent;
protected $language;
protected $agent;
protected $apiKey = "";
......@@ -912,6 +913,8 @@ class MetaGer
# nicht einmal wir selbst noch Zugriff auf die Daten haben:
$this->ip = preg_replace("/(\d+)\.(\d+)\.\d+.\d+/s", "$1.$2.0.0", $this->ip);
$this->useragent = $request->header('User-Agent');
# Language
if (isset($_SERVER['HTTP_LANGUAGE'])) {
$this->language = $_SERVER['HTTP_LANGUAGE'];
......@@ -1439,6 +1442,11 @@ class MetaGer
{
return $this->ip;
}
public function getUserAgent()
{
return $this->useragent;
}
public function getEingabe()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment