@if(auth()->user()->role == 'admin' and $Vgit > $Vlocal or env('JOIN_BETA') === true)
@if($_SERVER['QUERY_STRING'] === '')
{{__('messages.Updater')}}
@if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
@if(env('JOIN_BETA') === true)
$Vlocal) {echo __('messages.You need to update to the latest mainline release');} else {echo __("messages.You’re running the latest mainline release");} ?>
@else
{{__('messages.update.manually')}}
{{__('messages.update.windows')}}
@endif
@else
@if(env('JOIN_BETA') === true)
$Vlocal) {echo __('messages.You need to update to the latest mainline release');} else {echo __("messages.You’re running the latest mainline release");} ?>
@else
{{$Vlocal}} -> {{$Vgit}}
{{__('messages.update.manually')}}
@endif
@endif
@endif
@if($_SERVER['QUERY_STRING'] === 'updating-windows' and strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
{{__('messages.Updating')}}
@Push('updater-head')
@endpush
@endif
@if($_SERVER['QUERY_STRING'] === 'updating-windows-bat' and strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
open(base_path() . '/storage/update.zip');
$zip->extractTo(base_path());
$zip->close();
unlink(base_path() . '/storage/update.zip');
echo "
current() . "/?finishing\" />";
?>
@endif
@if($_SERVER['QUERY_STRING'] === 'backup')
@Push('updater-head')
@endpush
{{__('messages.Creating backup')}}
@endif
@if($_SERVER['QUERY_STRING'] === 'backups')
true]);
$tst = base_path('backups/');
file_put_contents($tst.'CANUPDATE', '');
$URL = Route::current()->getName();
header("Location: ".$URL."?preparing");
exit(); ?>
@endif
@if($_SERVER['QUERY_STRING'] === 'preparing')
{{__('messages.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))
{{__('messages.Updating')}}
@Push('updater-head')
@endpush
@endif
@elseif($_SERVER['QUERY_STRING'] === '')
{{__('messages.No new version')}}
{{__('messages.There is no new version available')}}
@endif
@if($_SERVER['QUERY_STRING'] === 'finishing')
{{__('messages.Finishing up')}}
@include('components.finishing')
current() . "?success\" />"; ?>
@endif
@if($_SERVER['QUERY_STRING'] === 'success')
{{__('messages.Success!')}}
@if(env('JOIN_BETA') === true)
$Vlocal) {echo __('messages.You need to update to the latest mainline release');} else {echo __("messages.You’re running the latest mainline release");} ?>
@else
{{__('messages.The update was successful')}}
{{__('messages.View the release notes')}}
@endif
@endif
@if($_SERVER['QUERY_STRING'] === 'error')
{{__('messages.Error')}}
{{__('messages.Something went wrong with the update')}} :(
@endif
@endpush