Merge branch 'main' of bitbucket.org:venbainformationtechnology/bb_sign
This commit is contained in:
commit
466975dbce
@ -688,7 +688,7 @@ class MasterController extends BaseController
|
|||||||
$documentUrl = base_url();
|
$documentUrl = base_url();
|
||||||
// helper('url');
|
// helper('url');
|
||||||
|
|
||||||
$url ='<a href="' . generate_signed_url('preview', ['doc_id'=> md5((string)$doc_id)], 36000) . '">Preview and Approve Document</a>';
|
$url ='<a href="' . generate_signed_url('preview', ['doc_id'=> md5((string)$doc_id)], 259200) . '">Preview and Approve Document</a>';
|
||||||
// $businessData = $this->BranchModel->select('branches.* , business.business_name ')
|
// $businessData = $this->BranchModel->select('branches.* , business.business_name ')
|
||||||
// ->join('business', 'branches.business_id = business.business_id', 'left')
|
// ->join('business', 'branches.business_id = business.business_id', 'left')
|
||||||
// ->where('branches.branch_id',$this->session->get('logged_in_staff_branch_id'))
|
// ->where('branches.branch_id',$this->session->get('logged_in_staff_branch_id'))
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
use Config\Services;
|
use Config\Services;
|
||||||
|
|
||||||
if (!function_exists('generate_signed_url')) {
|
if (!function_exists('generate_signed_url')) {
|
||||||
function generate_signed_url($route, $params = [], $expiresIn = 3600)
|
function generate_signed_url($route, $params = [], $expiresIn = 259200)
|
||||||
{
|
{
|
||||||
$secretKey = 'your-secret-key'; // Change this to your secret key
|
$secretKey = 'your-secret-key'; // Change this to your secret key
|
||||||
$expiresAt = time() + $expiresIn;
|
$expiresAt = time() + $expiresIn;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user