From d02d6e78aefe6d060cc64a7d5a0c2e872dce37bf Mon Sep 17 00:00:00 2001 From: 1day2die Date: Mon, 2 Jan 2023 13:46:21 +0100 Subject: [PATCH 1/7] added TOS --- app/Classes/Settings/System.php | 2 + .../admin/settings/tabs/system.blade.php | 13 + resources/views/auth/login.blade.php | 3 + resources/views/auth/register.blade.php | 7 +- .../views/information/tos-content.blade.php | 484 ++++++++++++++++++ resources/views/information/tos.blade.php | 21 + resources/views/layouts/main.blade.php | 7 +- routes/web.php | 6 +- 8 files changed, 537 insertions(+), 6 deletions(-) create mode 100644 resources/views/information/tos-content.blade.php create mode 100644 resources/views/information/tos.blade.php diff --git a/app/Classes/Settings/System.php b/app/Classes/Settings/System.php index e217b987..f2759c1f 100644 --- a/app/Classes/Settings/System.php +++ b/app/Classes/Settings/System.php @@ -48,6 +48,7 @@ public function checkPteroClientkey(){ "enable-disable-servers" => "string", "show-imprint" => "string", "show-privacy" => "string", + "show-tos" => "string", ]); $validator->after(function ($validator) use ($request) { @@ -91,6 +92,7 @@ public function checkPteroClientkey(){ "SETTINGS::SYSTEM:CREATION_OF_NEW_USERS" => "enable-disable-new-users", "SETTINGS::SYSTEM:SHOW_IMPRINT" => "show-imprint", "SETTINGS::SYSTEM:SHOW_PRIVACY" => "show-privacy", + "SETTINGS::SYSTEM:SHOW_TOS" => "show-tos", ]; diff --git a/resources/views/admin/settings/tabs/system.blade.php b/resources/views/admin/settings/tabs/system.blade.php index f51df1f2..1cf92b8f 100644 --- a/resources/views/admin/settings/tabs/system.blade.php +++ b/resources/views/admin/settings/tabs/system.blade.php @@ -13,6 +13,19 @@ + + + + + {{ __('Show Terms of Service') }} + + + + diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 732fd414..727e23f2 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -131,6 +131,9 @@ @if (config('SETTINGS::SYSTEM:SHOW_PRIVACY')) {{ __('Privacy') }} @endif + @if (config('SETTINGS::SYSTEM:SHOW_TOS')) + | {{ __('Terms of Service') }} + @endif