2016-10-31 21:00:30 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use App\Helpers\Helper;
|
|
|
|
use Response;
|
|
|
|
|
|
|
|
class ActionlogController extends Controller
|
|
|
|
{
|
|
|
|
public function displaySig($filename)
|
|
|
|
{
|
2016-12-19 11:04:28 -08:00
|
|
|
$this->authorize('view', \App\Models\Asset::class);
|
2021-06-10 13:15:52 -07:00
|
|
|
$file = config('app.private_uploads').'/signatures/'.$filename;
|
2016-10-31 21:00:30 -07:00
|
|
|
$filetype = Helper::checkUploadIsImage($file);
|
|
|
|
$contents = file_get_contents($file);
|
2021-06-10 13:15:52 -07:00
|
|
|
|
2016-10-31 21:00:30 -07:00
|
|
|
return Response::make($contents)->header('Content-Type', $filetype);
|
|
|
|
}
|
2022-03-08 16:42:27 -08:00
|
|
|
|
|
|
|
public function getStoredEula($filename){
|
|
|
|
$this->authorize('view', \App\Models\Asset::class);
|
2022-03-14 19:38:36 -07:00
|
|
|
$file = config('app'.$filename);
|
2022-03-08 16:42:27 -08:00
|
|
|
|
2022-03-10 12:15:50 -08:00
|
|
|
|
2022-03-08 16:42:27 -08:00
|
|
|
return Response::download($file);
|
|
|
|
}
|
2016-10-31 21:00:30 -07:00
|
|
|
}
|