mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Update Secure Message with the intended recipient, also added a confidential disclosure method to the email and Secure message link, added number of views left and expire date, and other minor ui updates
This commit is contained in:
@@ -69,10 +69,12 @@ if ($row['item_active'] !== "1" || ($row['item_view_limit'] > 0 && $row['item_vi
|
||||
$item_type = nullable_htmlentities($row['item_type']);
|
||||
$item_related_id = intval($row['item_related_id']);
|
||||
$item_encrypted_credential = nullable_htmlentities($row['item_encrypted_credential']);
|
||||
$item_recipient = nullable_htmlentities($row['item_recipient']);
|
||||
$item_note = nullable_htmlentities($row['item_note']);
|
||||
$item_views = intval($row['item_views']);
|
||||
$item_view_limit = intval($row['item_view_limit']);
|
||||
$item_created = nullable_htmlentities($row['item_created_at']);
|
||||
$item_expire = nullable_htmlentities($row['item_expire_at']);
|
||||
$item_expire = date('Y-m-d h:i A', strtotime($row['item_expire_at']));
|
||||
$client_id = intval($row['item_client_id']);
|
||||
?>
|
||||
|
||||
@@ -86,8 +88,24 @@ $client_id = intval($row['item_client_id']);
|
||||
?>
|
||||
|
||||
<div class="card mt-2">
|
||||
<div class="card-header bg-dark">
|
||||
<div class="card-title">
|
||||
<h5><small>Secure Message intended for:</small><br><strong><?php echo $item_recipient ?></strong></h5>
|
||||
</div>
|
||||
|
||||
<div class="card-tools">
|
||||
<div>
|
||||
<?php echo "Views: $item_views / <strong>$item_view_limit</strong>"; ?>
|
||||
</div>
|
||||
<div>
|
||||
<?php echo "Expires: <strong>$item_expire</strong>"; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<?php
|
||||
if ($item_type == "Document") {
|
||||
|
||||
@@ -105,7 +123,7 @@ if ($item_type == "Document") {
|
||||
$doc_title_escaped = sanitizeInput($doc_row['document_name']);
|
||||
$doc_content = $purifier->purify($doc_row['document_content']);
|
||||
|
||||
echo "<h2>$doc_title</h2>";
|
||||
echo "<h3>$doc_title</h3>";
|
||||
echo $doc_content;
|
||||
|
||||
// Update document view count
|
||||
@@ -176,7 +194,7 @@ if ($item_type == "Document") {
|
||||
|
||||
?>
|
||||
|
||||
<h4><?php echo $login_name; ?></h4>
|
||||
<h5><?php echo $login_name; ?></h5>
|
||||
<table class="table col-md-3">
|
||||
<tr>
|
||||
<th>URL</th>
|
||||
@@ -235,6 +253,11 @@ if ($item_type == "Document") {
|
||||
|
||||
?>
|
||||
|
||||
<hr>
|
||||
<em>
|
||||
This message and any attachments are confidential and intended for the specified recipient(s) only. If you are not the intended recipient, please notify us immediately with the contact info below. Unauthorized use, disclosure, or distribution is prohibited.
|
||||
</em>
|
||||
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php echo "<i class='fas fa-phone fa-fw mr-2'></i>$company_phone | <i class='fas fa-globe fa-fw mr-2 ml-2'></i>$company_website"; ?>
|
||||
|
||||
Reference in New Issue
Block a user