diff --git a/app/Http/Controllers/ImageController.php b/app/Http/Controllers/ImageController.php deleted file mode 100644 index f39beecab8399e8fef7374f9bf3149c047f6968d..0000000000000000000000000000000000000000 --- a/app/Http/Controllers/ImageController.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -namespace App\Http\Controllers; - -use File; -use Illuminate\Http\Request; -use PiwikTracker; -use Response; - -class ImageController extends Controller -{ - public function generateImage(Request $request) - { - /* - #Piwik Code - PiwikTracker::$URL = 'http://piwik.metager3.de'; - $piwikTracker = new PiwikTracker($idSite = 1); - - // Cookies ausschalten - $piwikTracker->disableCookieSupport(); - $piwikTracker->deleteCookies(); - - $site = $request->input('site', '/'); - - // Sendet Tracker request per http - $piwikTracker->doTrackPageView($site); - */ - $path = public_path() . '/img/1px.png'; - $fileType = File::type($path); - $response = Response::make(File::get($path), 200); - $response->header('Content-Type', $fileType); - return $response; - } -} diff --git a/app/MetaGer.php b/app/MetaGer.php index a5db721c44634f2ece610321c99e9d72a1863d3a..f7bf6c31dd9384e1586e355725a73faded0f5b90 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -1371,12 +1371,10 @@ class MetaGer IP-Adress older than one day stored on our servers. (Except the ones who got banned in that short period of course) ;-) */ $logEntry .= " ip=" . $this->request->ip(); - $logEntry .= " pid=" . getmypid(); $logEntry .= " ref=" . $this->request->header('Referer'); $logEntry .= " time=" . round((microtime(true) - $this->starttime), 2) . " serv=" . $this->fokus; $logEntry .= " interface=" . LaravelLocalization::getCurrentLocale(); $logEntry .= " sprachfilter=" . $this->lang; - $logEntry .= " search=" . $this->eingabe; # 2 Arten von Logs in einem wird die Anzahl der Abfragen an eine Suchmaschine gespeichert und in der anderen # die Anzahl, wie häufig diese Ergebnisse geliefert hat. diff --git a/package-lock.json b/package-lock.json index bb844cee5c3e9f281165dd65faafb829358ad861..000aa0b297c0189fb26897a3b3d56a167880a89e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4300,7 +4300,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.1.1", @@ -4375,6 +4376,7 @@ "version": "2.10.1", "bundled": true, "dev": true, + "optional": true, "requires": { "hoek": "2.x.x" } @@ -4544,6 +4546,7 @@ "version": "1.0.11", "bundled": true, "dev": true, + "optional": true, "requires": { "graceful-fs": "^4.1.2", "inherits": "~2.0.0", @@ -4611,7 +4614,8 @@ "graceful-fs": { "version": "4.1.11", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "har-schema": { "version": "1.0.5", @@ -4798,12 +4802,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "mkdirp": { "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -5093,6 +5099,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } diff --git a/resources/views/resultpages/metager3rich.blade.php b/resources/views/resultpages/metager3rich.blade.php index 0b0f3c0ca5a364a192de5847b579cdd4369ea694..840e9772c9a7eb13d59aae2d9883467ca2bb8253 100644 --- a/resources/views/resultpages/metager3rich.blade.php +++ b/resources/views/resultpages/metager3rich.blade.php @@ -55,6 +55,5 @@ <footer class="footer-text"> <a href="https://metager.de/impressum" target="_blank">Impressum</a> </footer> - <img src="{{ action('ImageController@generateImage')}}?site={{ urlencode(url()->current()) }}" class="hidden" /> </body> </html>