mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-08 08:08:42 +01:00
Fixed error View [.panel.backups] not found
This commit is contained in:
parent
25656fb31a
commit
28bced73dd
25
resources/views/panel/backups.blade.php
Normal file
25
resources/views/panel/backups.blade.php
Normal file
@ -0,0 +1,25 @@
|
||||
@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
|
Loading…
x
Reference in New Issue
Block a user