Update fax_emails.php
Added spaces to the code to be more consistent.
This commit is contained in:
parent
e80a04f1a5
commit
1fc99311a5
|
|
@ -232,7 +232,7 @@ if (is_array($result) && @sizeof($result) != 0) {
|
||||||
$fax_message = str_replace("\r\n\r\n", "\r\n", $fax_message);
|
$fax_message = str_replace("\r\n\r\n", "\r\n", $fax_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
//set fax directory (used for pdf creation - cover and/or attachments)
|
// set fax directory (used for pdf creation - cover and/or attachments)
|
||||||
$fax_dir = $_SESSION['switch']['storage']['dir'].'/fax'.(($domain_name != '') ? '/'.$domain_name : null);
|
$fax_dir = $_SESSION['switch']['storage']['dir'].'/fax'.(($domain_name != '') ? '/'.$domain_name : null);
|
||||||
|
|
||||||
//handle attachments (if any)
|
//handle attachments (if any)
|
||||||
|
|
@ -243,11 +243,11 @@ if (is_array($result) && @sizeof($result) != 0) {
|
||||||
$fax_file_extension = pathinfo($attachment['name'], PATHINFO_EXTENSION);
|
$fax_file_extension = pathinfo($attachment['name'], PATHINFO_EXTENSION);
|
||||||
|
|
||||||
//block unknown files
|
//block unknown files
|
||||||
if ($fax_file_extension == '') { continue; }
|
if ($fax_file_extension == '') {continue; }
|
||||||
//block unauthorized files
|
//block unauthorized files
|
||||||
if (!$fax_allowed_extension['.' . $fax_file_extension]) { continue; }
|
if (!$fax_allowed_extension['.' . $fax_file_extension]) { continue; }
|
||||||
//support only attachments
|
//support only attachments
|
||||||
//if($attachment['disposition'] != 'attachment') { continue; }
|
//if($attachment['disposition'] != 'attachment'){ continue; }
|
||||||
|
|
||||||
//store attachment in local fax temp folder
|
//store attachment in local fax temp folder
|
||||||
$uuid_filename = uuid();
|
$uuid_filename = uuid();
|
||||||
|
|
@ -276,7 +276,7 @@ if (is_array($result) && @sizeof($result) != 0) {
|
||||||
$cwd = getcwd();
|
$cwd = getcwd();
|
||||||
$included = true;
|
$included = true;
|
||||||
require("fax_send.php");
|
require("fax_send.php");
|
||||||
if($cwd) {
|
if($cwd){
|
||||||
chdir($cwd);
|
chdir($cwd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue