diff --git a/ajax.php b/ajax.php
index de095c93..3a420b06 100644
--- a/ajax.php
+++ b/ajax.php
@@ -252,11 +252,15 @@ if (isset($_GET['share_generate_link'])) {
$item_email = sanitizeInput($_GET['contact_email']);
$item_note = sanitizeInput($_GET['note']);
$item_view_limit = intval($_GET['views']);
+ $item_view_limit_wording = "";
+ if ($item_view_limit == 1) {
+ $item_view_limit_wording = " and may only be viewed once, before the link is destroyed.";
+ }
$item_expires = sanitizeInput($_GET['expires']);
$item_expires_friendly = "never"; // default never
if ($item_expires == "1 HOUR") {
$item_expires_friendly = "1 hour";
- } elseif ($item_expires == "24 HOURS") {
+ } elseif ($item_expires == "24 HOUR") {
$item_expires_friendly = "1 day";
} elseif ($item_expires == "168 HOUR") {
$item_expires_friendly = "1 week";
@@ -326,7 +330,7 @@ if (isset($_GET['share_generate_link'])) {
if ($item_expires_friendly == "never") {
$subject = "$company_name secure link enclosed";
}
- $body = "Hello,
$session_name from $company_name sent you a time sensitive secure link regarding \"$item_name\".
The link will expire in $item_expires_friendly and may only be viewed $item_view_limit times, before the link is destroyed.
Click here to access your secure content
--
$company_name - Support
$config_ticket_from_email
$company_phone";
+ $body = "Hello,
$session_name from $company_name sent you a time sensitive secure link regarding \"$item_name\".
The link will expire in $item_expires_friendly$item_view_limit_wording.
Click here to access your secure content
--
$company_name - Support
$config_ticket_from_email
$company_phone";
// Add the intended recipient disclosure
$body .= "
This email and any attachments are confidential and intended for the specified recipient(s) only. If you are not the intended recipient, please notify the sender and delete this email. Unauthorized use, disclosure, or distribution is prohibited.";