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 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<!-- age classification (age-label.com) --> +<!-- label generator: age-label.com --> +<age-declaration> + <ageblock-basic> + <age-issuer>metager.de</age-issuer> + <last-change>2018-07-06</last-change> + <country>de</country> + <label-version>1.0</label-version> + <revisit-after>1days</revisit-after> + </ageblock-basic> + <ageblock-labeltype> + <httpheader>false</httpheader> + <htmlmeta>true</htmlmeta> + <label-z>false</label-z> + <xmlfile>true</xmlfile> + <default-age>0</default-age> + <alternate>https://www.metager.de/jugendschutz</alternate> + </ageblock-labeltype> + <ageblock-labeltype-definition> + <labeltype-htmlmeta-definition> + <label class="name1"> + <scope>*.metager.de</scope> + <scope>*.metager3.de</scope> + </label> + </labeltype-htmlmeta-definition> + <labeltype-xmlfile> + <label class="website"> + <age>0</age> + <min-age>0</min-age> + <default-age>0</default-age> + <scope>*.metager.de</scope> + <scope>*.metager3.de</scope> + </label> + </labeltype-xmlfile> + </ageblock-labeltype-definition> +</age-declaration> \ 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 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<!-- age classification (age-label.com) --> +<!-- label generator: age-label.com --> +<!-- file type: age.xml --> +<age-declaration> + <ageblock-basic> + <age-issuer>metager.de</age-issuer> + <last-change>2018-07-06</last-change> + <country>de</country> + <label-version>2.0</label-version> + <revisit-after>1days</revisit-after> + </ageblock-basic> + <ageblock-country> + <country class="age.xml"> + <country-code>all</country-code> + </country> + <country-default>age.xml</country-default> + </ageblock-country> + <ageblock-labeltype> + <httpheader>false</httpheader> + <htmlmeta>true</htmlmeta> + <phraselabel>false</phraselabel> + <agesubmit>false</agesubmit> + <label-z>false</label-z> + <xmlfile>true</xmlfile> + <default-age>0</default-age> + <alternate>https://www.metager.de/jugendschutz</alternate> + </ageblock-labeltype> + <ageblock-labeltype-definition> + <labeltype-htmlmeta-definition> + <label class="name1"> + <scope>*.metager.de/*</scope> + <scope>*.metager3.de/*</scope> + </label> + </labeltype-htmlmeta-definition> + <labeltype-xmlfile> + <label class="website"> + <age>0</age> + <scope>*.metager.de/*</scope> + <scope>*.metager3.de/*</scope> + </label> + </labeltype-xmlfile> + </ageblock-labeltype-definition> +</age-declaration> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> + <label xmlns="http://www.miracle-label.eu/ns/2.0/"> + <age-declaration> + <issuer> + <age-issuer>metager.de</age-issuer> + <last-change>2018-07-06</last-change> + <country> + <country-code>all</country-code> + </country> + <custom></custom> + </issuer> + <scope> + <scope-urls> + <scope-url class="web-url">*.metager.de/*</scope-url> + <scope-url class="web-url">*.metager3.de/*</scope-url> + </scope-urls> + </scope> + <rating> + <age>0</age> + </rating> + </age-declaration> + </label> \ 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 @@ +<?php + +return [ + 'title' => '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 <a href="https://www.blinde-kuh.de/">Blinde Kuh</a>.' +]; 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') + <h1 class="page-title">{!! trans('jugendschutz.title') !!}</h1> + <div class="card-heavy"> + <p>{!! trans('jugendschutz.text') !!}</p> + </div> +@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 @@ <link type="text/css" rel="stylesheet" href="/fonts/liberation-fonts/liberation-fonts.css" /> <link id="theme" type="text/css" rel="stylesheet" href="/css/theme.css.php" /> <meta name="referrer" content="origin"> + <meta name="age-meta-label" content="age=18"/> @include('parts.utility') </head> <body id="resultpage-body"> 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');