2023-07-11 15:36:47 +02:00
|
|
|
@extends('layouts.sidebar')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
@if (file_exists(base_path('backups/updater-backups/')) and is_dir(base_path('backups/updater-backups/')))
|
2023-07-12 15:28:23 +02:00
|
|
|
<?php
|
|
|
|
$filename = $_SERVER['QUERY_STRING'];
|
|
|
|
|
|
|
|
$filepath = base_path('backups/updater-backups/') . $filename;
|
|
|
|
|
|
|
|
$strFile = file_get_contents($filepath);
|
|
|
|
|
|
|
|
header("Content-type: application/force-download");
|
|
|
|
header('Content-Disposition: attachment; filename="'.$filename.'"');
|
|
|
|
|
|
|
|
header('Content-Length: ' . filesize($filepath));
|
|
|
|
echo $strFile;
|
|
|
|
while (ob_get_level()) {
|
|
|
|
ob_end_clean();
|
2023-07-11 15:36:47 +02:00
|
|
|
}
|
2023-07-12 15:28:23 +02:00
|
|
|
readfile($filepath);
|
|
|
|
exit;
|
|
|
|
?>
|
2023-07-11 15:36:47 +02:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@endsection
|