From: Vincent Vanwaelscappel Date: Thu, 18 Jul 2024 09:04:55 +0000 (+0200) Subject: wip #7010 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3f71ecf1808331090ad395cb7c3505c769c61c1e;p=fluidbook-toolbox.git wip #7010 @1 --- diff --git a/app/Console/Commands/FluidbookHostAbuse.php b/app/Console/Commands/FluidbookHostAbuse.php new file mode 100644 index 000000000..2d3f5b80e --- /dev/null +++ b/app/Console/Commands/FluidbookHostAbuse.php @@ -0,0 +1,32 @@ +argument('id', '')); + + foreach ($ids as $id) { + /** @var FluidbookPublication $fb */ + $fb = FluidbookPublication::withoutGlobalScopes()->find($id); + $fb->install_online = ['server' => 43, 'path' => $id]; + $fb->saveQuietly(); + + $download = new Download($fb, 'online', 'install', $this->getUser()); + $download->handle(); + + $fb->redirectDemo = 'https://abuse.hosting2.fluidbook.com/' . $id . '/'; + $fb->saveQuietly(); + } + } +}