From f1de845554dbf01ede003165464d828ea545a1b6 Mon Sep 17 00:00:00 2001 From: IceToast Date: Mon, 6 Feb 2023 11:32:19 +0100 Subject: [PATCH 1/9] =?UTF-8?q?fix:=20=F0=9F=90=9B=20getCsrfIgnoredRoutes?= =?UTF-8?q?=20map=20all=20routes=20just=20once?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Helpers/ExtensionHelper.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Helpers/ExtensionHelper.php b/app/Helpers/ExtensionHelper.php index fdf880ab..7e1bbda3 100644 --- a/app/Helpers/ExtensionHelper.php +++ b/app/Helpers/ExtensionHelper.php @@ -51,13 +51,11 @@ class ExtensionHelper $routes = array_merge($routes, $config['RoutesIgnoreCsrf']); } - // add extension/ infront of every route - foreach ($routes as $key => $route) { - $routes[$key] = 'extensions/' . $route; - } + // map over the routes and add the extension name as prefix + $result = array_map(fn ($item) => "extensions/{$item}", $routes); } - return $routes; + return $result; } /** From f6c8eecb872d163c08bafbfd2f0b637bb6639ac2 Mon Sep 17 00:00:00 2001 From: IceToast Date: Mon, 6 Feb 2023 11:57:14 +0100 Subject: [PATCH 2/9] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Wrong=20class=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/CleanupOpenPayments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/CleanupOpenPayments.php b/app/Console/Commands/CleanupOpenPayments.php index 31510b6a..6fd96a7a 100644 --- a/app/Console/Commands/CleanupOpenPayments.php +++ b/app/Console/Commands/CleanupOpenPayments.php @@ -5,7 +5,7 @@ namespace App\Console\Commands; use App\Models\Payment; use Illuminate\Console\Command; -class CleanupPayments extends Command +class CleanupOpenPayments extends Command { /** * The name and signature of the console command. From fc575a95547f8b5e73d986b88e9440f139053c5d Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 23 Feb 2023 09:37:56 +0100 Subject: [PATCH 3/9] Update app.php --- config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index 5f16a82c..1afefd24 100644 --- a/config/app.php +++ b/config/app.php @@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Facade; return [ - 'version' => '0.9.2', + 'version' => '0.9.3', /* |-------------------------------------------------------------------------- From 44dee3929b84c113c9f2716ab0601619df175f62 Mon Sep 17 00:00:00 2001 From: IceToast Date: Fri, 24 Feb 2023 12:42:29 +0100 Subject: [PATCH 4/9] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Users=20table=20searc?= =?UTF-8?q?hing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/default/views/admin/users/index.blade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/default/views/admin/users/index.blade.php b/themes/default/views/admin/users/index.blade.php index c1912185..e2ac9828 100644 --- a/themes/default/views/admin/users/index.blade.php +++ b/themes/default/views/admin/users/index.blade.php @@ -116,11 +116,12 @@ name: 'users.credits' }, { - data: 'servers_count' - + data: 'servers_count', + searchable: false }, { data: 'referrals_count', + searchable: false }, { data: 'verified', From ba75d09cbf729e62ffd8054d7e40727045bd7ac1 Mon Sep 17 00:00:00 2001 From: IceToast <54889359+IceToast@users.noreply.github.com> Date: Sat, 18 Mar 2023 21:45:57 +0100 Subject: [PATCH 5/9] Update app.php --- config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index 1afefd24..12a5377d 100644 --- a/config/app.php +++ b/config/app.php @@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Facade; return [ - 'version' => '0.9.3', + 'version' => '0.9.4', /* |-------------------------------------------------------------------------- From 15ee059d302f35b9377879a64f365ff501ec82bf Mon Sep 17 00:00:00 2001 From: Jens <34610614+AGuyNamedJens@users.noreply.github.com> Date: Fri, 14 Apr 2023 10:01:05 +0200 Subject: [PATCH 6/9] [Fix] Fix new installations This bugfix comments out the installation counter as it is currently an extremely bad practice and resulted in an issue with errors. --- app/Http/Controllers/HomeController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 5a511758..88129623 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -25,6 +25,8 @@ class HomeController extends Controller $this->middleware('auth'); } + /* + * TODO: This is commented due to the fact the market is a bad dependency, will be changed later. public function callHome() { if (Storage::exists('callHome')) { @@ -34,7 +36,7 @@ class HomeController extends Controller 'id' => Hash::make(URL::current()), ]); Storage::put('callHome', 'This is only used to count the installations of cpgg.'); - } + }*/ /** * @description Get the Background Color for the Days-Left-Box in HomeView From b99d6a51a62628025323a90dd63f26620317c1f6 Mon Sep 17 00:00:00 2001 From: Jens <34610614+AGuyNamedJens@users.noreply.github.com> Date: Fri, 14 Apr 2023 10:09:28 +0200 Subject: [PATCH 7/9] [FIX] Shouldn't forget caller --- app/Http/Controllers/HomeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 88129623..1d35a42c 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -107,7 +107,7 @@ class HomeController extends Controller $unit = $daysLeft < 1 ? ($hoursLeft < 1 ? null : __('hours')) : __('days'); } - $this->callhome(); + //$this->callhome(); TODO: Same as the function // RETURN ALL VALUES return view('home')->with([ From cfe5086b1043698cb3943d156462e8090581b729 Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 24 Apr 2023 13:29:04 +0200 Subject: [PATCH 8/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d908e3c0..347a7bfc 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ ![](https://img.shields.io/endpoint?label=v0.9%20Installations&url=https%3A%2F%2Fmarket.controlpanel.gg%2Fcallhome.php%3Fgetinstalls) -![](https://img.shields.io/badge/Overall%20Installations-3500%2B-green) +![](https://img.shields.io/badge/Overall%20Installations-5000%2B-green) ![](https://img.shields.io/github/stars/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/forks/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/tag/ControlPanel-gg/dashboard) [![Crowdin](https://badges.crowdin.net/controlpanelgg/localized.svg)](https://crowdin.com/project/controlpanelgg) ![](https://img.shields.io/github/issues/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/license/ControlPanel-gg/dashboard) ![](https://img.shields.io/discord/787829714483019826) ## About From f52c93c92599713cc08cd10b076383cded6a0933 Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 25 Apr 2023 06:56:49 +0100 Subject: [PATCH 9/9] Updated urls to new ones --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 347a7bfc..2d2c062a 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ ![controlpanel](https://user-images.githubusercontent.com/67899387/214684708-739c1d21-06e8-4dec-a4f1-81533a46cc7e.png) -![](https://img.shields.io/endpoint?label=v0.9%20Installations&url=https%3A%2F%2Fmarket.controlpanel.gg%2Fcallhome.php%3Fgetinstalls) +![](https://img.shields.io/endpoint?label=v0.9%20Installations&url=https%3A%2F%2Fmarket.ctrlpanel.gg%2Fcallhome.php%3Fgetinstalls) ![](https://img.shields.io/badge/Overall%20Installations-5000%2B-green) ![](https://img.shields.io/github/stars/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/forks/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/tag/ControlPanel-gg/dashboard) [![Crowdin](https://badges.crowdin.net/controlpanelgg/localized.svg)](https://crowdin.com/project/controlpanelgg) ![](https://img.shields.io/github/issues/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/license/ControlPanel-gg/dashboard) ![](https://img.shields.io/discord/787829714483019826) ## About @@ -31,15 +31,15 @@ ControlPanel's Dashboard is a dashboard application designed to offer clients a This dashboard offers an easy to use and free billing solution for all starting and experienced hosting providers. This dashboard has many customisation options and added discord Oauth verification to offer a solid link between your discord server and your dashboard. You can check our [Demo here](https://demo.controlpanel.gg "Demo"). -### [Installation](https://controlpanel.gg/docs/intro "Installation") +### [Installation](https://ctrlpanel.gg/docs/intro "Installation") -### [Updating](https://controlpanel.gg/docs/Installation/updating "Updating") +### [Updating](https://ctrlpanel.gg/docs/Installation/updating "Updating") ### [Discord](https://discord.gg/4Y6HjD2uyU "Discord") -### [Contributing](https://controlpanel.gg/docs/Contributing/contributing "Contributing") +### [Contributing](https://ctrlpanel.gg/docs/Contributing/contributing "Contributing") -### [Donating](https://controlpanel.gg/docs/Contributing/donating "Donating") +### [Donating](https://ctrlpanel.gg/docs/Contributing/donating "Donating")