Commit Graph

262 Commits

Author SHA1 Message Date
FusionPBX 3b19f4a464 function permisison_exists remove operator
It was added by a contributor who hasn't used it anywhere in the project. For this reason its being removed.
2024-09-09 09:31:54 -06:00
FusionPBX 979917468c Use uuidgen on FreeBSD 2024-08-26 20:33:05 -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 e24edd47f0 Use database::new() 2024-08-05 09:58:14 -06:00
Antonio Fernandez 9ace83cad1 adding function to be used in app/messages (#7073) 2024-07-26 13:49:06 -06:00
FusionPBX 54e7b85142 Update functions.php 2024-06-28 13:10:15 -06:00
frytimo 0b8edef82c Config class rewrite (#6965)
* Use a singleton pattern in the database class to re-use the database object inside the permission_exists function.
2024-04-27 19:22:20 -06:00
frytimo 33ff85ee75 Commad line upgrade enhancements (#6955)
* Add new English language phrases for cli upgrade menu

* include a software name as a const for cli upgrade menu

* add it repos in app folder, internationalizations, and descriptions

* bug fix when response_source_update is empty change back to origin dir

* change original 'menu' to 'menus'. Allow calling menu from upgrade.php

* Update upgrade_menu.php
2024-04-22 17:15:09 -06:00
FusionPBX 675ac2d433 Prevents an error when groups session is not set 2024-04-20 17:06:05 -06:00
frytimo a9886a8ba9 Add str_starts_with and str_ends_with to PHP versions older than 8 (#6832)
* Add str_starts_with and str_ends_with to PHP versions older than 8

* Update functions.php
2024-03-26 16:42:44 -06:00
fusionate 0be7204762 Functions: Mods to support color manipulations for waveform generation. 2024-02-09 13:05:38 -07:00
frytimo a2c54d98b4 ensure $git_repo is an array and has elements before access (#6874) 2024-01-20 16:45:23 -07:00
FusionPBX d428119f4f Fix natural_sort cast to text
If item being sorted is numeric data type need to cast to text.

This would usually be fixed during the upgrade. However BDR prevents using standard alter table data type commands.
2024-01-10 11:37:10 -07:00
fusionate 0e4f933da2 Functions: Minor clean up. 2023-12-22 00:09:26 +00:00
demonspork df6d56d148 Support updating optional installed apps via git (#6513)
* WIP: Support updating optional installed apps via git

* support app source update via cli

* Update app_languages.php

* Update index.php

* Refactor App Git updating

Refactor Optional App Git updating for more resilience and better handling of ssh remotes and to only update each repository once.

* git app updates fix gui updates for repo based updating
2023-12-21 12:28:04 -07:00
FusionPBX eee9006c1f Add format_seconds function 2023-12-14 17:01:32 -07:00
FusionPBX 40998fdac1 Fix color_adjust rgb error 2023-12-12 16:44:52 -07:00
frytimo 3a4c2f72e2 Event socket bug fix and more docs (#6823)
* Add documentation to methods. Use is_resource for added type detection

* Allow connect to specify timeout in microseconds with default 30,000

* Update calling mechanism for event sockets

* Update project for new singleton event sockets

* remove unused variable

* catch errors on closing the socket
2023-12-02 17:16:18 -07:00
fusionate 4fcd98638b Order By [Function]: Only use natural sort function for PostgreSQL databases. 2023-10-19 18:45:42 +00:00
fusionate 0de8570dd3 Order By [Function]: Updated to support natural sorting. 2023-10-19 16:46:48 +00:00
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