GWM: secure doc link

This commit is contained in:
bitbucket 2024-07-01 09:06:58 +05:30
parent ecba729082
commit 7bce186c76
6 changed files with 22 additions and 8 deletions

View File

@ -79,7 +79,7 @@ class TestController extends Controller
public function sendUrl()
{
helper('url');
$signedUrl = generate_signed_url('preview', ['doc_id'=>md5(7)], 60);
$signedUrl = generate_signed_url('preview', ['doc_id'=>md5(1)], 36000);
// Send the $signedUrl to your client (e.g., via email)
return $this->response->setJSON(['url' => $signedUrl]);

View File

@ -41,7 +41,7 @@ class ClientDocsModel extends Model
$this->join('template', 'template.template_id = client_docs.template_id','left');
$this->join('services', 'services.service_id = template.service_id','left');
$this->join('business', 'business.business_id = template.template_header_business','left');
$this->where('client_docs.id', $doc_id);
$this->where('md5(client_docs.id)', $doc_id);
return $this->get()->getRow();

View File

@ -158,7 +158,21 @@
}
body[data-layout-mode=horizontal] .content-page{
padding-top:20px;
padding-bottom:0;
}
@media (max-width: 768px){
body[data-layout-mode=horizontal] .content-page .card-body span, body[data-layout-mode=horizontal] .content-page .card-body i{
font-size: 14px!important;
}
body[data-layout-mode=horizontal] .content-page .card-body .template-header img{
width: 80px!important;
}
body[data-layout-mode=horizontal] .content-page .card-body .template-header span{
font-size: 18px!important;
}
}
</style>

View File

@ -123,7 +123,7 @@
}
@media (min-width: 992px) {
.topnav { height: 56px; }
.logo-lg img{ height:50px; }
.logo-lg img{ height:35px; }
.navbar-custom{ height:60px; }
.logo-box .logo{ line-height: 60px; }
.navbar-custom .topnav-menu .nav-link{ line-height: 60px; height: 60px; color:#ffffff; }
@ -276,14 +276,14 @@
</a>
<a class="logo logo-light text-center">
<span class="logo-sm">
<!-- Dox 2 Approve -->
<!-- <img src="?= base_url()."public"; ?>/assets/images/logo_white_sm.png" alt="" height="24"> -->
<img src="<?= base_url()."public"; ?>/assets/images/dox2apprv-fav.png" alt="" height="24">
</span>
<span class="logo-lg">
<h3 style="color: white;margin-top: 16px;"> Dox 2 Approve </h3>
<!-- <img src="?= base_url()."public"; ?>/assets/images/logo_white.png" alt="" height="20"> -->
<!-- <img src="<?= base_url()."public"; ?>/assets/images/image.png" alt="" height="20"> -->
<!-- <h3 style="color: white;margin-top: 16px;"> Dox 2 Approve </h3> -->
<img src="<?= base_url()."public"; ?>/assets/images/dox.png" alt="" height="20">
</span>
</a>

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB