2016-10-31 21:00:30 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use App\Helpers\Helper;
|
2022-03-16 09:54:10 -07:00
|
|
|
use App\Models\Actionlog;
|
2016-10-31 21:00:30 -07:00
|
|
|
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-16 11:51:40 -07:00
|
|
|
public function getStoredEula($filename){
|
|
|
|
$this->authorize('view', \App\Models\Asset::class);
|
|
|
|
$file = config('app.private_uploads').'/eula-pdfs/'.$filename;
|
|
|
|
|
|
|
|
return Response::download($file);
|
|
|
|
}
|
2016-10-31 21:00:30 -07:00
|
|
|
}
|