@extends('layouts.updater')
@Push('updater-body')
tag_name;
// Requests current version from the local version file and sets it as variable
$Vlocal = 'v' . file_get_contents(base_path("version.json"));
?>
@if(auth()->user()->role == 'admin' and $Vgit > $Vlocal)
@if($_SERVER['QUERY_STRING'] === '')
l
Updater
You can update your installation automatically or download the update and install it manually:
@endif
@if($_SERVER['QUERY_STRING'] === 'backup')
@Push('updater-head')
@endpush
l
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."?updating");
exit(); ?>
@endif
@if($_SERVER['QUERY_STRING'] === 'updating' and (file_exists(base_path("backups/CANUPDATE"))))
l
Updating
@Push('updater-head')
@endpush
@endif
@endif
@if($_SERVER['QUERY_STRING'] === 'finishing')
l
Finishing up
getName();
header("Location: ".$URL."?success");
exit(); ?>
@endif
@if($_SERVER['QUERY_STRING'] === 'success')
l
Success!
The update was successful, you can now return to the Admin Panel:
@endif
@endpush