Commit Graph

122 Commits

Author SHA1 Message Date
FusionPBX 8b7bd29456
Fix temporary permissions 2024-11-29 14:06:08 -07:00
fusionate ac94e22a1d
Fax Server: Pull in language file for email template replacements. 2024-08-22 17:20:36 -06:00
fusionate 12eead4b4d
Fax Server: Add option for Download Link on received fax notifications, instead of attachment. 2024-08-22 16:11:06 -06:00
frytimo 2cbb4dbc31
remove instances where a pointer is used in a foreach loop for value (#7108) 2024-08-22 12:41:10 -06:00
FusionPBX 6600bbdfc6
Update the indentation 2024-08-14 13:03:03 -06:00
frytimo 301fb2b974
remove all $_SESSION references and use single database object (#7095)
Updates:
- use config object to find and load config file
- use single database object with config passed in constructor
- use settings object with database passed in constructor
- parse command line options with for loop so order no longer matters
- store all passed options in the super global $_REQUEST array for easy reference and debugging
- add debug and debug_level options for command line
- allow dumping the command line arguments when debug_level is 3 or higher
- add config option in command line to set location of config file
- add a shutdown function to allow for the exit command to be used but still output to either console or file
- add extra checks for options that are needed during runtime
- remove old PHP version 4 code
- add is_file check when checking for a valid .tiff file because file_exists returns true if it's a directory or file
2024-08-14 12:59:53 -06:00
frytimo d7bbcd89f5
Use magic constant dir (#6711)
* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__ to load only functions.php

* replace spaces with tab character

* update dirname command to use levels instead of nesting

* use magic constant __DIR__

* update dirname command to use levels instead of nesting

* Update access_control_edit.php

* Update access_control_import.php

* Update access_controls.php

* Update dnd.php

* Update access_controls_reload.php

* Update call_center_agents.php

* Update call_center_agents.php

* Update fax_queue.php

* Update login.php

* Update pdo.php

* Update pdo_vm.php

* Update switch.php

* Update index.php

* Update css.php

* Update v_mailto.php

* Update fax_to_email.php

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-06-15 11:28:23 -06:00
markjcrane f506b00b57 PHP 8.2 Deprecated dynamic properties 2023-06-12 21:27:23 -06:00
Alex 5e90483b95
Missing quotes (#6751) 2023-06-09 16:59:09 -06:00
markjcrane 6cbf572512 Remove fax_retry.lua supporting FAX Queue only 2023-05-17 12:37:31 -06:00
frytimo fef8165be2
Frytimo pr patches for php8.1 (#6630)
* Passing null to parameter #2 ($string) of type string is deprecated

* Passing null to parameter #1 ($string) of type string is deprecated

* php 8.1 fixes

* php 8.1 fixes - replace strlen($var) > 0 with !empty($var)

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - strlower with null

* php 8.1 fixes - strreplace with null

* php 8.1 fixes - passing null to base64_decode

* php 8.1 fixes - check for false and check for null on $this->dir

* php 8.1 fixes - remove assignment of $db variable to modules object

* php 8.1 fixes - avoid sending null to substr

* php 8.1 fixes - change ${var} to {$var}

* php 8.1 fixes - check for null before preg_replace

* php 8.1 fixes - remove setting db variable on domains object

* php 8.1 fixes - set empty string if $row['domain_setting_subcategory'] is null

* php 8.1 fixes - set empty string if $_REQUEST['show'] is not available

* php 8.1 fixes

* php 8.1 fixes - correct $_POST checking syntax

* php 8.1 fixes - correct $_POST variables

* php 8.1 fixes

* Use brackets consistently

* Update user_setting_edit.php

* Change to not empty

* Update device.php

* Update text.php

---------

Co-authored-by: Tim Fry <tim@voipstratus.com>
Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-05-05 10:46:37 -06:00
FusionPBX f40621141f
Update the include path 2022-10-22 23:56:10 -06:00
markjcrane d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
FusionPBX 07679fe80d
Add escapeshellarg to the variables used in the command line. 2022-06-29 10:38:36 -06:00
FusionPBX 58fc71fce9
Fix implode paramater order and few other minor edits. 2022-05-13 11:44:41 -06:00
FusionPBX 0e4e379b14
Use fax_email from the fax table for the mail to address.
And add additional condition for fax_queue enabled.
2022-04-30 23:50:50 -06:00
FusionPBX eeba3eb66f
Fix fax forward so it can use the fax queue. 2022-04-30 20:39:15 -06:00
FusionPBX a84095ef30
Fix the email from address. 2022-04-23 15:27:29 -06:00
FusionPBX 72cfc0d418
Remove fax enqueue as it has been replaced by the new fax queue. 2022-04-19 00:53:07 -06:00
FusionPBX 4f5b832157
Use the email class object. 2022-04-18 12:13:43 -06:00
FusionPBX c8ef7c83c1
Update v_mailto.php 2022-04-17 15:35:37 -06:00
FusionPBX 8c84c9c837
Use the email class. 2022-04-17 08:30:08 -06:00
FusionPBX f71e6563e7
Update fax_to_email.php 2022-04-02 23:04:23 -06:00
FusionPBX 249d40381a
Add the file extension to the name. 2022-02-07 15:44:54 -07:00
FusionPBX 4c4fef83c8
Update fax_to_email.php 2022-02-07 15:28:40 -07:00
FusionPBX a94009b5a9
Attach the PDF file if it exists. 2022-02-07 15:24:38 -07:00
FusionPBX 40205d32bf
Update fax_to_email.php 2022-02-04 21:53:06 -07:00
FusionPBX 737eb1df0a
Use the right variable fax_email. 2022-02-04 21:32:49 -07:00
FusionPBX 4f6e5da0af
Use the send_email function to send fax to email. 2022-02-04 16:01:27 -07:00
FusionPBX 2a90732936
Remove the timezone from now() 2021-11-20 11:48:22 -07:00
FusionPBX 480e34a301
Use email address_type and default to add_address with an option to use add_bcc. 2021-10-20 17:07:49 -06:00
TNSSF a5705406b1
update to fix array count of emails (#6046)
at line 269 if this is set to ZERO all emails are bcc. this causes problems for normal recipients and scripts that depend on a TO field existing.

Setting to 1 will have it be a normal to: if its 1 email address and if its more than 1 it will do the BCC steps.
2021-09-01 11:35:58 -06:00
FusionPBX 997bef41cf
Correct the str_replace 2021-08-16 12:18:38 -06:00
FusionPBX aca358c0b7
Change AddAddress to AddBCC and improved some of the comments.
Multiple email addresses not working when sending to mailgun using AddAddress. After changing it to AddBCC it resolved the problem for mailgun.
2021-08-16 11:25:49 -06:00
root 45319ef301 Set directories to 755 and files to 644 2019-12-14 17:34:17 +00:00
Nate aaca2bb47c Voicemail-to-Email: Domain Settings fix. 2019-12-11 15:59:15 -07:00
Nate 82a07205b6 Email Logs: List view updates, search, bulk resend, download, delete. 2019-11-10 01:40:29 -07:00
Nate faadda843e Update fax_to_email.php 2019-09-09 12:48:36 -06:00
Nate 677f830f01 Remove unnecessary permission object instatiations. 2019-08-30 19:29:04 -06:00
Nate 04c2f7a132 Misc: Database class integration. 2019-08-28 17:53:34 -06:00
FusionPBX 48c6e8a20a Update v_mailto.php 2019-04-18 09:42:31 -06:00
borisk1976 ff154192e2 Update v_mailto.php (#3954)
Don't know is this right way or not, but without this russian emails are totally unreadable.
2018-12-23 12:06:24 -07:00
Nate f0594c8279 Update v_mailto.php
Add ability to define the hostname used when sending mail.
2018-11-28 23:00:12 -07:00
Rich Breton 6ec89fc432 append for troubleshooting purposes (#3195)
Seems like can handle, filesize with logrotate or another way manually.
2018-06-26 11:47:15 -06:00
FusionPBX 3d9246dd1f Update v_mailto.php 2018-02-22 20:14:58 -07:00
FusionPBX f2481537a7 Update fax_to_email.php 2018-02-15 18:49:14 -07:00
FusionPBX b5b2032ecc Update fax_to_email.php 2018-02-06 18:23:09 -07:00
FusionPBX 4d6d7a2d20 Update v_mailto.php 2018-02-06 18:21:35 -07:00
FusionPBX f2edcf0fe0 Update fax_to_email.php 2018-02-02 00:51:59 -07:00
FusionPBX e26732c30c Update v_mailto.php 2018-02-02 00:45:57 -07:00