From 11a69a74834b0e81433e59676b6042c18ca56cab Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Wed, 9 Nov 2022 17:02:04 +0100 Subject: [PATCH] Update update.blade.php --- resources/views/update.blade.php | 35 +++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/resources/views/update.blade.php b/resources/views/update.blade.php index 90b2951..2ab7002 100644 --- a/resources/views/update.blade.php +++ b/resources/views/update.blade.php @@ -4,7 +4,7 @@
@if(env('SKIP_UPDATE_BACKUP') == true) -    +    @else    @endif @@ -61,7 +61,7 @@

Updating

@Push('updater-head') - + @endpush @endif @@ -121,10 +121,35 @@ Artisan::call('backup:run', ['--only-files' => true]); $tst = base_path('backups/'); file_put_contents($tst.'CANUPDATE', ''); $URL = Route::current()->getName(); -header("Location: ".$URL."?updating"); +header("Location: ".$URL."?preparing"); exit(); ?> @endif +@if($_SERVER['QUERY_STRING'] === 'preparing') + +
+ Logo +
l
+
+

Preparing update

+ + + + @include('components.pre-update') + + @if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') + + @else + current() . "?updating\" />" ?> + @endif +@endif + @if($_SERVER['QUERY_STRING'] === 'updating' and (file_exists(base_path("backups/CANUPDATE")) or env('SKIP_UPDATE_BACKUP') == true))
@@ -211,6 +236,6 @@ exit(); ?> @endif @if("8" > phpversion())

You are using an outdated version of PHP! Official support for this version will end soon. @endif -
+
@endpush \ No newline at end of file