|
2 | 2 |
|
3 | 3 | @Push('updater-body') |
4 | 4 |
|
5 | | -@if($_SERVER['QUERY_STRING'] === 'updating') |
| 5 | +@if($_SERVER['QUERY_STRING'] === 'updating' and (file_exists(base_path("backups/CANUPDATE")))) |
6 | 6 | <?php //updating... ?> |
7 | 7 | <div class="logo-container fadein"> |
8 | 8 | <img class="logo-img loading" src="{{ asset('littlelink/images/just-gear.svg') }}" alt="Logo" style=""> |
9 | 9 | <div class="logo-centered">l</div> |
10 | 10 | </div> |
11 | 11 | <center><h1 class="loadingtxt">Updating</h1></center> |
| 12 | + @Push('updater-head') |
| 13 | + <meta http-equiv="refresh" content="2; URL={{url()->current()}}/?updating-done" /> |
| 14 | + @endpush |
12 | 15 | @endif |
13 | 16 |
|
14 | | - |
15 | 17 | @if($_SERVER['QUERY_STRING'] === 'backup') |
16 | 18 | <?php //creating backup... ?> |
17 | 19 | @Push('updater-head') |
|
51 | 53 | @endif |
52 | 54 |
|
53 | 55 |
|
54 | | -@if($_SERVER['QUERY_STRING'] === 'backup-created') |
55 | | - <?php //download backup ?> |
56 | | - <style>.logo-container{padding-top:23vh;}.logo-centered{top:37vh;}</style> |
57 | | - <div class="logo-container fadein"> |
58 | | - <img class="logo-img" src="{{ asset('littlelink/images/just-gear.svg') }}" alt="Logo" style=""> |
59 | | - <div class="logo-centered">l</div> |
60 | | - </div> |
61 | | - <center><h1>Download backup</h1> |
62 | | - <h4 class="">You can keep the update stored on the server or download it as a precaution:</h4> |
63 | | - <br><div class="row"> |
64 | | -  <button style=""><i class="fa-solid fa-play btn"></i><a class="btn" href="{{url()->current()}}/?updating"> Start anyway</a></button>  |
65 | | -  <button style=""><i class="fa-solid fa-file-export btn"></i><a class="btn" href="{{url()->current()}}/?updating"> Start and download</a></button>  |
66 | | - </div> |
67 | | - </center> |
68 | | -@endif |
69 | | - |
70 | | - |
71 | | -@if($_SERVER['QUERY_STRING'] === 'success') |
| 56 | +@if($_SERVER['QUERY_STRING'] === 'success' and (file_exists(base_path("backups/CANUPDATE")))) |
72 | 57 | <?php //download backup ?> |
73 | 58 | <style>.logo-container{padding-top:23vh;}.logo-centered{top:37vh;}</style> |
74 | 59 | <div class="logo-container fadein"> |
75 | 60 | <img class="logo-img" src="{{ asset('littlelink/images/just-gear.svg') }}" alt="Logo" style=""> |
76 | 61 | <div class="logo-centered">l</div> |
77 | 62 | </div> |
78 | | - <center><h1>Download backup</h1> |
| 63 | + <center><h1>Success!</h1> |
79 | 64 | <h4 class="">The update was successful, you can now return to the Admin Panel:</h4> |
80 | 65 | <br><div class="row"> |
81 | | -  <button style=""><i class="fa-solid fa-house-laptop btn"></i><a class="btn" href="{{url()->current()}}/"> Admin Panel</a></button>  |
| 66 | +  <button style=""><i class="fa-solid fa-house-laptop btn"></i><a class="btn" href="{{ route('studioIndex') }}"> Admin Panel</a></button>  |
82 | 67 | </div> |
83 | 68 | </center> |
84 | 69 | @endif |
|
0 commit comments