diff --git a/.gitignore b/.gitignore index 197f541a..2ce103d8 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML/* plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI/* !plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI/.gitkeep plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS/* -!plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS/.gitkeep \ No newline at end of file +!plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS/.gitkeep +.vscode/settings.json diff --git a/ajax.php b/ajax.php index da6fee02..7e7d18a4 100644 --- a/ajax.php +++ b/ajax.php @@ -310,12 +310,20 @@ if (isset($_GET['share_generate_link'])) { if ($item_expires_friendly == "never") { $subject = "$session_company_name secure link enclosed"; } - $body = "Hello,

$session_name from $session_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

~
$session_company_name
Support Department
$config_ticket_from_email"; + $body = mysqli_real_escape_string($mysqli, "Hello,

$session_name from $session_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

~
$session_company_name
Support Department
$config_ticket_from_email"); - $mail = sendSingleEmail($config_smtp_host, $config_smtp_username, $config_smtp_password, $config_smtp_encryption, $config_smtp_port, - $config_mail_from_email, $config_mail_from_name, - $item_email, $item_email, - $subject, $body); + $data = [ + [ + 'from' => $config_mail_from_email, + 'from_name' => $config_mail_from_name, + 'recipient' => $item_email, + 'recipient_name' => $item_email, + 'subject' => $subject, + 'body' => $body + ] + ]; + + $mail = addToMailQueue($mysqli, $data); if ($mail !== true) { mysqli_query($mysqli,"INSERT INTO notifications SET notification_type = 'Mail', notification = 'Failed to send email to $item_email'"); diff --git a/client_document_details.php b/client_document_details.php index 672b70dd..11e3612b 100644 --- a/client_document_details.php +++ b/client_document_details.php @@ -104,14 +104,15 @@ $document_parent = intval($row['document_parent']); while ($row = mysqli_fetch_array($sql_files)) { $file_id = intval($row['file_id']); + $folder_id = intval($row['file_folder_id']); $file_name = nullable_htmlentities($row['file_name']); $linked_files[] = $file_id; ?>
  • - - + +
  • @@ -143,8 +144,8 @@ $document_parent = intval($row['document_parent']); ?>
  • - - + +
  • @@ -161,7 +162,7 @@ $document_parent = intval($row['document_parent']); \n' + '\n' + - '

    مفتاحا السهمين لأسفل‎ ولأعلى‎\n' + + '

    مفتاحا السهمين لأسفل‎ ولأعلى‎

    \n' + '\n' + '\n' + '\n' + - '

    С клавишите със стрелка надолу и нагоре\n' + + '

    С клавишите със стрелка надолу и нагоре

    \n' + '\n' + '\n' + '\n' + - '

    Les tecles de fletxa Avall i Amunt\n' + + '

    Les tecles de fletxa Avall i Amunt

    \n' + '\n' + '\n' + '\n' + - '

    Klávesy se šipkou dolůnahoru\n' + + '

    Klávesy se šipkou dolůnahoru

    \n' + '\n' + '\n' + '\n' + - '

    Pil ned og op\n' + + '

    Pil ned og op

    \n' + '\n' + '\n' + '\n' + - '

    Die Pfeiltasten Abwärts und Aufwärts\n' + + '

    Die Pfeiltasten Abwärts und Aufwärts

    \n' + '\n' + '\n' + '\n' + - '

    Με τα πλήκτρα επάνω και κάτω βέλους\n' + + '

    Με τα πλήκτρα επάνω και κάτω βέλους

    \n' + '\n' + '\n' + '\n' + - '

    The Down and Up arrow keys\n' + + '

    The Down and Up arrow keys

    \n' + '\n' + '\n' + '\n' + - '

    Las teclas de flecha abajo y arriba permiten\n' + + '

    Las teclas de flecha abajo y arriba permiten

    \n' + '\n' + '\n' + '\n' + - '

    Gora eta Behera gezi-teklak\n' + + '

    Gora eta Behera gezi-teklak

    \n' + '\n' + '\n' + '\n' + - '

    کلیدهای جهت‌نمای پایین و بالا\n' + + '

    کلیدهای جهت‌نمای پایین و بالا

    \n' + '\n' + '\n' + '\n' + - '

    Alas- ja Ylös-nuolinäppäimet\n' + + '

    Alas- ja Ylös-nuolinäppäimet

    \n' + '\n' + '\n' + '\n' + - '

    Les touches fléchées Bas et Haut\n' + + '

    Les touches fléchées Bas et Haut

    \n' + '\n' + '\n' + '\n' + - '

    מקשי החיצים למטה ולמעלה\n' + + '

    מקשי החיצים למטה ולמעלה

    \n' + '\n' + '\n' + '\n' + - '

    नीचे और ऊपर ऐरो कुंजियां\n' + + '

    नीचे और ऊपर ऐरो कुंजियां

    \n' + '\n' + '\n' + '\n' + - '

    Tipke s donjom i gornjom strelicom\n' + + '

    Tipke s donjom i gornjom strelicom

    \n' + '\n' + '\n' + '\n' + - '

    A le és a fel nyílgomb\n' + + '

    A le és a fel nyílgomb

    \n' + '\n' + '\n' + '\n' + - '

    Tombol panah Bawah dan Atas untuk\n' + + '

    Tombol panah Bawah dan Atas untuk

    \n' + '\n' + '\n' + '\n' + - '

    I tasti freccia Giù e Su\n' + + '

    I tasti freccia Giù e Su

    \n' + '\n' + '\n' + '\n' + - '

    下矢印上矢印のキー\n' + + '

    下矢印上矢印のキー

    \n' + '\n' + '\n' + '\n' + - '

    Down (Төмен) және Up (Жоғары) көрсеткі пернелері\n' + + '

    Down (Төмен) және Up (Жоғары) көрсеткі пернелері

    \n' + '\n' + '\n' + '\n' + - '

    아래 화살표 키의 용도:\n' + + '

    아래 화살표 키의 용도:

    \n' + '\n' + '\n' + '\n' + - '

    Kekunci anak panah Bawah dan Atas\n' + + '

    Kekunci anak panah Bawah dan Atas

    \n' + '\n' + '\n' + '\n' + - '

    Ned- og opp-piltastene\n' + + '

    Ned- og opp-piltastene

    \n' + '\n' + '\n' + '\n' + - '

    Met de pijltjestoetsen Omlaag en Omhoog\n' + + '

    Met de pijltjestoetsen Omlaag en Omhoog

    \n' + '\n' + '\n' + '\n' + - '

    Klawisze strzałek w dół i w górę służą do\n' + + '

    Klawisze strzałek w dół i w górę służą do

    \n' + '\n' + '\n' + '\n' + - '

    As teclas de seta Abaixo e Acima\n' + + '

    As teclas de seta Abaixo e Acima

    \n' + '\n' + '\n' + '\n' + - '

    As teclas de seta Para cima e Para baixo\n' + + '

    As teclas de seta Para cima e Para baixo

    \n' + '\n' + '\n' + '\n' + - '

    Tastele cu săgeți în sus și în jos\n' + + '

    Tastele cu săgeți în sus și în jos

    \n' + '\n' + '\n' + '\n' + - '

    Клавиши со стрелками вниз и вверх позволяют\n' + + '

    Клавиши со стрелками вниз и вверх позволяют

    \n' + '\n' + '\n' + '\n' + - '

    Klávesy so šípkami dole a hore\n' + + '

    Klávesy so šípkami dole a hore

    \n' + '\n' + '\n' + '\n' + - '

    Spodnja in zgornja puščična tipka\n' + + '

    Spodnja in zgornja puščična tipka

    \n' + '\n' + '\n' + '\n' + - '

    Nedpil och uppil\n' + + '

    Nedpil och uppil

    \n' + '\n' + '\n' + '\n' + - '

    ปุ่มลูกศรลงและขึ้น\n' + + '

    ปุ่มลูกศรลงและขึ้น

    \n' + '\n' + '\n' + '\n' + - '

    Aşağı ve Yukarı ok tuşları\n' + + '

    Aşağı ve Yukarı ok tuşları

    \n' + '\n' + '\n' + '\n' + - '

    Клавіші зі стрілками Вниз і Вгору\n' + + '

    Клавіші зі стрілками Вниз і Вгору

    \n' + '\n' + '\n' + '\n' + - '

    Các phím mũi tên Hướng xuốngHướng lên\n' + + '

    Các phím mũi tên Hướng xuốngHướng lên

    \n' + '\n' + '\n' + '\n' + - '

    箭头键\n' + + '

    箭头键

    \n' + '\n' + '\n' + '\n' + - '

    向下向上方向鍵\n' + + '

    向下向上方向鍵

    \n' + '\n' + '