Commit Graph

242 Commits

Author SHA1 Message Date
fusionate 518c32efe6
Misc: Mitigate PHP 8.1 warnings. 2023-09-20 20:49:27 +00:00
fusionate d9d17a6917
Misc: Remove parameters from event_socket_create() calls. 2023-09-20 18:43:17 +00:00
FusionPBX 5f688f2e1d
Update functions.php 2023-09-11 11:43:31 -06:00
FusionPBX 2c5724c6ed
Add new class methods and use them 2023-09-11 01:45:19 -06:00
fusionate ac6d9e5c45
Functions - Adjust is_json() function for better detection. 2023-07-31 23:27:15 +00:00
FusionPBX ee591e730e
Use !empty function instead of != '' 2023-07-22 15:21:01 -06:00
fusionate 7dd146689f
Functions: Update for PHP 8.1 2023-07-19 02:15:16 +00:00
FusionPBX f998c4f62b
Function format_hours convert seconds to an integer and use sprintf for leading zeros. 2023-07-06 15:40:53 -06:00
fusionate 212ceb361d
Functions: Enhance is_uuid(), is_mac() and format_device_address() functions. 2023-06-30 21:47:32 +00:00
markjcrane 53779d50d3 Change device_mac_address to device_address 2023-06-29 23:40:11 -06:00
FusionPBX 4d54821119
Add a is_xml function 2023-06-16 11:13:20 -06:00
fusionate 09ba7069dc
Functions: Enhance html_select_other() function. 2023-06-09 17:28:56 +00:00
fusionate c8e8c5acd7
Functions: Update format_phone() function for PHP 8.1 2023-06-01 23:22:39 +00:00
fusionate b1cf7d7e1d
Functions - format_hours(): Adjust minute formatting. 2023-05-29 19:12:11 +00:00
fusionate 18f9c7a26f
Functions: Update for PHP 8.1 2023-05-22 23:06:07 +00:00
fusionate adfdb7bae5
Functions: Updates for PHP 8.1 2023-05-13 04:53:18 +00:00
fusionate 733b206664
Functions: Updates for PHP 8.1 2023-05-12 00:45:09 +00:00
FusionPBX 2d3f623174
Update for PHP 8.1 2023-05-09 18:50:06 -06:00
FusionPBX 0038395009
If numeric then don't need to escape
Numeric should be safe as a pass thru.
2023-05-05 13:23:44 -06:00
FusionPBX b40005c11e
Account for numbers 2023-05-05 13:18:15 -06:00
fusionate f29a78a6af
Functions: Adjust escape function to handle non-strings (XML objects). 2023-05-05 17:00:39 +00: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
fusionate a4c4e4c52a
Functions: Modify permission_exists() function to support an array of permissions. 2023-02-03 18:50:56 +00:00
FusionPBX 03ac05fc64
Moved to resources/require.php
Found a better home for this code.
2022-10-14 10:08:03 -06:00
FusionPBX 2bcf6743a5
Ensure DOCUMENT_ROOT and PROJECT_PATH exist 2022-10-12 10:24:30 -06:00
FusionPBX 8c4ad43fbc
Fix spelling in accountcode description 2022-05-16 09:13:29 -06:00
FusionPBX 45f9d9aaa5
Rewrite the send_email function to use the email class. 2022-04-15 18:03:40 -06:00
FusionPBX f4a658959b
Update functions.php 2022-04-03 03:11:22 -06:00
FusionPBX eb5f6afb5e
Temporarily exclude the email_queue function transcribe. 2022-03-22 14:07:22 -06:00
FusionPBX cdcfcfd520
Include additional functions 2022-03-22 00:15:35 -06:00
Luis Daniel Lucio Quiroz 8b3f7752a7
Fixes the blank password issue (#6322) 2022-03-09 15:11:30 -07:00
FusionPBX 85778bd3ec
Adjust smtp_secure to work better when not using TLS. 2022-02-28 13:43:04 -07:00
agree 81bf5f496c
[email validation] improve validation to conform the RFC (#6232)
The current validation regex didn't conform with RFC 5322 PHP `filter_var` does.
More information can be found https://en.wikipedia.org/wiki/Email_address#Local_part
2022-02-19 11:38:00 -07:00
FusionPBX 158391c5ec
SMTPAuth change from string to boolean true or false.
- Build the SMPTOptions array in a more flexible way
- And add an SMPT pption to set the crypto_method
2022-01-31 12:27:44 -07:00
FusionPBX fc35482f74
Improve mailer error handling for the send_email function. 2021-10-27 09:43:24 -06:00
FusionPBX d51a940d0f
If the cidr is empty then return false. 2021-10-11 01:37:53 -06:00
FusionPBX d682dcc717
Update the format_string function 2021-10-08 16:38:48 -06:00
FusionPBX 24094d221b
Add user_exists function
Pulled from 4.4 pull request that was accepted. 4.5.
2021-06-21 16:43:22 -06:00
FusionPBX 4b775e5769
Change type to mime_type. 2021-06-11 13:25:33 -06:00
FusionPBX 398610cf25
Add comments and mime types to the attachments for the send_email function. 2021-06-10 19:37:47 -06:00
agree cf4f8d1e36 Add ability to set default accountcodes 2021-05-05 21:28:47 -04:00
FusionPBX e19c1d2b01
Use a try catch block in the send_email function. 2021-04-12 12:45:59 -06:00
demonspork efd27fbe90 fix send_email function for multi-part addresses
The send_email function wasn't successfully parsing ; or , separated email address lists. I simplified it's processing.

While I was at it I removed the "valid email" check from email_test.php because that step is already being done in the send_email function that is called and it safely returns the appropriate error. I would have had to rewrite that function to handle the multiple email lists otherwise.
2021-03-19 19:15:32 -05:00
FusionPBX 14549d972e
Remove deprecated pg_escape_string 2021-01-12 22:11:20 -07:00
FusionPBX 8d46b4f299
add alternative array_key_first for older verisons of PHP 2021-01-04 18:31:44 -07:00
fusionate 1f5283e53d Functions - persistent_form_values: Update to support greater flexibility. 2020-12-30 19:36:52 -07:00
fusionate 60a3a09828 Functions - th_order_by: Order column asc on first click. 2020-11-18 16:23:40 -07:00
agree f055e0700b
Fix order by on outbound routes 2020-11-12 16:14:08 -05:00
Nate d5bc65111a Call Block: Partial support for Country Code. 2020-10-27 11:21:12 -06:00
agree b8451c1a84
Escape quotes on mkdir (#5463)
* Escape quotes on mkdir

* use better function for argument escaping
2020-09-18 08:01:05 -06:00