diff --git a/resources/age/age-de.xml b/resources/age/age-de.xml new file mode 100644 index 0000000000000000000000000000000000000000..e9fee012a93a0c226e02514b843316493d6d99dc --- /dev/null +++ b/resources/age/age-de.xml @@ -0,0 +1,37 @@ + + + + + + metager.de + 2018-07-06 + de + 1.0 + 1days + + + false + true + false + true + 0 + https://www.metager.de/jugendschutz + + + + + + + + + + \ No newline at end of file diff --git a/resources/age/age.xml b/resources/age/age.xml new file mode 100644 index 0000000000000000000000000000000000000000..cd405b22c4abfe1cb66e216bc2648a3842d2b5f2 --- /dev/null +++ b/resources/age/age.xml @@ -0,0 +1,44 @@ + + + + + + + metager.de + 2018-07-06 + de + 2.0 + 1days + + + + all + + age.xml + + + false + true + false + false + false + true + 0 + https://www.metager.de/jugendschutz + + + + + + + + + + \ No newline at end of file diff --git a/resources/age/miracle.xml b/resources/age/miracle.xml new file mode 100644 index 0000000000000000000000000000000000000000..d05cc1286f8a2057965e375562219cb381168e51 --- /dev/null +++ b/resources/age/miracle.xml @@ -0,0 +1,22 @@ + + \ No newline at end of file diff --git a/resources/lang/de/jugendschutz.php b/resources/lang/de/jugendschutz.php new file mode 100644 index 0000000000000000000000000000000000000000..e145ce38bc07c2aaad20249ee83d7fffb5e0c3c3 --- /dev/null +++ b/resources/lang/de/jugendschutz.php @@ -0,0 +1,6 @@ + 'Jugendschutz', + 'text' => 'Unsere Suche liefert Suchergebnisse zu verschiedensten Bereichen des Internets. Einige diese Bereiche sind für Menschen in deinem Alter nicht geeignet. Wenn du trotzdem etwas im Internet suchen willst, frage deine Eltern oder benutze eine andere Suchmaschine, zum Beispiel Blinde Kuh.' +]; diff --git a/resources/lang/de/titles.php b/resources/lang/de/titles.php index afc4068d3ec8da1df5629d462d54b90715213cda..97b23a0fb2b93a3a49db56ef453d579796e635f3 100644 --- a/resources/lang/de/titles.php +++ b/resources/lang/de/titles.php @@ -20,4 +20,5 @@ return [ 'languages.edit' => 'Sprachdateien bearbeiten - MetaGer', 'app' => 'Apps - MetaGer', 'faktencheck' => 'Fakten-Prüfung contra Fake-News', + 'jugendschutz' => 'Jugendschutz' ]; diff --git a/resources/views/jugendschutz.blade.php b/resources/views/jugendschutz.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..98fe5e6fceb87f5f50ae092f6eb3ac27b1692d19 --- /dev/null +++ b/resources/views/jugendschutz.blade.php @@ -0,0 +1,10 @@ +@extends('layouts.subPages') + +@section('title', $title ) + +@section('content') +

{!! trans('jugendschutz.title') !!}

+
+

{!! trans('jugendschutz.text') !!}

+
+@endsection \ No newline at end of file diff --git a/resources/views/layouts/resultPage.blade.php b/resources/views/layouts/resultPage.blade.php index a72e8b247c359bd211f2f60577fae125f08b4b78..6d3b6ab12eff9b843047fc6639fdca0af799e9b8 100644 --- a/resources/views/layouts/resultPage.blade.php +++ b/resources/views/layouts/resultPage.blade.php @@ -17,6 +17,7 @@ + @include('parts.utility') diff --git a/routes/web.php b/routes/web.php index 20035702612027348ab579505a2123ebe66d093e..742d93d83dd40016b4e827e116148268aa7fcba7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -130,6 +130,23 @@ Route::group( Route::get('zitat-suche', 'ZitatController@zitatSuche'); + Route::get('jugendschutz', function () { + return view('jugendschutz') + ->with('title', trans('titles.jugendschutz')); + }); + + Route::get('age.xml', function () { + $response = Response::make(file_get_contents(resource_path('age/age.xml'))); + $response->header('Content-Type', "application/xml"); + return $response; + }); + + Route::get('age-de.xml', function () { + $response = Response::make(file_get_contents(resource_path('age/age-de.xml'))); + $response->header('Content-Type', "application/xml"); + return $response; + }); + Route::group([/*'middleware' => ['referer.check'],*/ 'prefix' => 'admin'], function () { Route::get('/', 'AdminInterface@index'); Route::match(['get','post'], 'count', 'AdminInterface@count');