Fax Server: Add option for Download Link on received fax notifications, instead of attachment.

This commit is contained in:
fusionate
2024-08-22 16:11:06 -06:00
parent 9eaef8a242
commit 12eead4b4d
8 changed files with 148 additions and 59 deletions
+2 -1
View File
@@ -131,7 +131,7 @@
}
//download the fax
if (isset($fax_dir) && !empty($_GET['a']) && $_GET['a'] == "download") {
if (isset($fax_dir) && !empty($_GET['a']) && ($_GET['a'] == "download" || $_GET['a'] == 'download_link')) {
//sanitize the values that are used in the file name and path
$fax_extension = preg_replace('/[^0-9]/', '', $_GET['ext']);
@@ -158,6 +158,7 @@
$fax->order_by = $_GET['order_by'] ?? '';
$fax->order = $_GET['order'] ?? '';
$fax->box = $_GET['box'] ?? '';
$fax->download = $_GET['a'] == 'download_link' ? true : false;
$fax->fax_file_toggle($fax_files);
unset($fax, $fax_files);
}