mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2024-12-12 18:28:27 +01:00
3cb3c8e234
This reverts commit 1230186977
.
25 lines
689 B
PHP
25 lines
689 B
PHP
@extends('layouts.sidebar')
|
|
|
|
@section('content')
|
|
@if (file_exists(base_path('backups/updater-backups/')) and is_dir(base_path('backups/updater-backups/')))
|
|
<?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();
|
|
}
|
|
readfile($filepath);
|
|
exit;
|
|
?>
|
|
@endif
|
|
|
|
@endsection
|