Commit Graph

8115 Commits

Author SHA1 Message Date
markjcrane
15089b4eea Optimized app_config file inclusion
- Update language handling
- Added support for $language variable
- Updated description and version lines with new language handling
2025-11-13 09:32:00 -07:00
FusionPBX
f3bbe8770e Add a space after the foreach 2025-11-13 08:27:53 -07:00
FusionPBX
2ca7565a4d Add a provisioning template for Htek uc926u 2025-11-12 17:54:25 -07:00
frytimo
5d5f00f82c Fixed the $settings object being singular when it should be plural (#7610)
This pull request fixes an error when the settings object is assigned to a singular variable of `$setting` instead of `$settings`. This makes the included files run potentially the wrong domain name.

Optimize the `upgrade()` method of the `domains.php` to reduce filesystem operations.
2025-11-12 16:02:57 -07:00
markjcrane
4809dc34ce Fix the yealink t74 wallpaper variable 2025-11-11 16:01:55 -07:00
FusionPBX
0232576a2f Change function order and order_by to nullable types 2025-11-10 13:49:35 -07:00
FusionPBX
f80a7749c6 Change parameters to allow nullable types in th_order_by 2025-11-10 13:26:02 -07:00
frytimo
9abc8c751f Fix invalid return point in functions.php (#7608)
The return statement would cause the functions.php to return too early before all functions below could be declared.
2025-11-10 08:36:57 -07:00
FusionPBX
203ce4d2a3 Function check_sql removed
This function was used before we started using paramaterized queries. So a better way has been in use for many years time to deprecate and remove the check_sql function.
2025-11-08 14:35:24 -07:00
frytimo
083a4ad97f First attempt for PHPDoc blocks for all functions in functions.php (#7607)
* First attempt for PHPDoc blocks for all functions in functions.php
PHPDoc Blocks created for all functions.
Old functions removed where PHP 7 was required for the function to exist:
- random_bytes
- random_in
- hash_equals
- mb_strtoupper

* Update functions.php

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2025-11-08 14:26:57 -07:00
FusionPBX
c1d81c6594 Change D785 to RW 2025-11-05 12:51:40 -07:00
FusionPBX
c6987c0e97 Update the owner 2025-11-05 09:33:18 -07:00
markjcrane
ac8f37cdd1 Add Polycom alterInfo and ring tones
VVX 5.x, 6.x, 250 and 450
2025-11-04 17:42:52 -07:00
Alex
396b025537 Check if the session is started to prevent PHP warnings (#7604) 2025-11-03 13:20:05 -07:00
markjcrane
422fee7f23 Prevent a few PHP Warnings 2025-11-01 21:40:28 -06:00
markjcrane
a90a4e6212 Pass the database object to the schema object 2025-11-01 21:34:03 -06:00
markjcrane
97af53b810 Add a deprecated message to the check_str function 2025-11-01 21:06:23 -06:00
markjcrane
1c61513e90 Remove check_str function call
This function has been deprecated.
2025-11-01 20:55:23 -06:00
markjcrane
bf5bb4f642 Fix multiple PHP warnings 2025-11-01 19:58:21 -06:00
markjcrane
54d07d5401 Add Yealink template for ax86r 2025-10-31 21:23:36 -06:00
FusionPBX
29797040dc Add function documentation 2025-10-30 20:45:04 -06:00
Alex
7ff33d6075 Add chartjs streaming plugin (#7601)
* Add chartjs streaming plugin

* Update index.php

* Update active_calls.php

* Update system_network_status.php

* Update system_cpu_status.php
2025-10-28 15:55:42 -06:00
FusionPBX
4eac9f51ee Fix a minor spelling mistake in Yealink configs 2025-10-27 12:18:22 -06:00
Mark J Crane
0d9107d4d5 Predefine the $m variable 2025-10-25 14:55:43 -06:00
FusionPBX
1221ac6498 Update domains.php 2025-10-24 23:40:27 -06:00
FusionPBX
55fe4e2eb5 Update settings class 2025-10-24 21:15:18 -06:00
Alex
126779190f Convert boolean values to a string before being copied (#7591)
* Convert boolean values to a string before being copied

* Update access_controls.php

* Update copyright year and handle boolean values

Updated copyright year from 2019 to 2025 and added conversion of boolean values to strings in the database result processing.

* Update call_block.php

* Update call_center.php

* Update call_flows.php

* Update conference_controls.php

* Update conference_profiles.php

* Update conferences.php

* Update device.php

* Update dialplan.php

* Update event_guard.php

* Update extension_settings.php

* Update fax.php

* Update fax_queue.php

* Update gateways.php

* Update ivr_menu.php

* Update number_translations.php

* Update phrases.php

* Update pin_numbers.php

* Update ring_groups.php

* Update streams.php

* Update time_conditions.php

* Update vars.php

* Update email_templates.php

* Update users.php

* Update domains.php

* Update groups.php

* Update extension_copy.php

* Update device_copy.php
2025-10-22 17:14:22 -06:00
FusionPBX
8855fdc834 Update the settings domain cidr
Replace $_SESSION['domain']['cidr'] with settings->get('domain', 'cidr')
2025-10-22 14:19:39 -06:00
Mark J Crane
136933fa57 Remove the semi-colon from the view sql statement. 2025-10-22 09:44:37 -06:00
Mark J Crane
2d6fbf5741 Update the install.php
- Updated to work with latest changes
- Updated a few setting defaults
2025-10-19 20:57:34 -06:00
FusionPBX
926254e7d0 Remove old unused code 2025-10-18 07:50:26 -06:00
Mark J Crane
a11b79e1b5 Removed :mixed to keep PHP 7.1 compatibility 2025-10-17 15:38:19 -06:00
frytimo
7fdb3644e7 Fix websocket connection (#7581) 2025-10-17 13:45:49 -06:00
Mark J Crane
559ea5fda7 Update the PHPDoc parameter types for select 2025-10-17 11:41:32 -06:00
frytimo
77eda80c3d Fix socket will not reconnect after disconnect (#7580) 2025-10-17 08:51:49 -06:00
frytimo
e0f7e38e84 Fix missing CSS class for open_id banners and more PHP warnings (#7575)
* Fix PHP 8.4 warnings
Strings are no longer allowed to be defaulted to null without the null declaration

* Fix missing css class for open_id banners
2025-10-16 12:08:19 -06:00
FusionPBX
940002ab64 Define global variables in multiple functions
Added global variable definitions to multiple functions for improved access to shared data.
2025-10-16 12:03:01 -06:00
FusionPBX
608480b8af Update the cache key 2025-10-16 08:15:16 -06:00
FusionPBX
1a221e0310 Add security headers for non-CLI execution
Add security headers conditionally for non-CLI requests
2025-10-15 21:43:14 -06:00
FusionPBX
dda18481ec Refactor PHP code (#7574)
* Use settings-get method
- get default, domain and user settings
- Replace _SESSION

* Simplify get domain paging

* Change isset using empty

* Fix token name and hash

* Add new default settings category: contact, name: default_sort_column, and default_sort_order

* Update app_config.php

* Update footer.php

* Fix require.php and core/dashboard/index.php (#7563)

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Update destinations.php

* Update permission.php

* Update require.php

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
Co-authored-by: FusionPBX <mark@fusionpbx.com>

* Update header.php

* Use settings get classes (#7567)

* access_control

* azure

* azure

* basic_operator_panel

* bridges

* call_block

* call_broadcast

* call_center

* call_flows

* call_forward

* call_recordings

* do_not_disturb

* feature_event_notify

* follow_me

* remove unused object properties

* fix esl command

* fix esl command

* conference_centers

* conference_centers - remove whitespace

* conference_controls

* conference_profiles

* conference_profiles

* Delete core/websockets/resources/classes/socket_exception.php.original~

* Delete core/websockets/resources/classes/websocket_server.php.original~

* conferences

* destinations

* device

* dialplan

* email_queue

* event_guard

* extension_settings

* extension

* fax

* fax_queue

* fifo

* gateways

* ivr_menu

* modules

* switch_music_on_hold

* number_translations

* phrases

* pin_numbers

* provision

* switch_recordings

* registrations

* ring_groups

* sip_profiles

* sofia_global_settings

* streams

* presence

* switch_files

* time_conditions

* vars

* voicemail_greetings

* voicemail

* ringbacks

* contacts

* xml_cdr

* authentication

* dashboard

* default_settings

* domain_settings

* email_templates

* permission

* user_logs

* user_settings

* users

* button

* cache

* captcha

* remove cli_option

* remove directory.php for switch_directory class

* email

* file

* groups

* event_socket use config object

* Use intval to give an integer port

* switch_settings

* tones

* fix object used before initialization

* menu

* fix copy paste error for switch_files.php

* always include require.php for framework files

* Fix missing properties

* set the action

* Use the $database object

* Add missing class properties

* Fix the domain_name

* Use public scope for domain_uuid and domain_name

* Add missing parameters

* Correct the user_uuid parameter

* Add json_validate and use it in the dashboard
update indentation on functions.php

* Intialize the active_registrations variable

* Define the $parameters

* Set a default value for user_setting_enabled

* Add condition domain_uuid not empty

* Add not empty condition for domain_uuid

* Declare the global variables

* Update how the defaults are set use ??

* Use ?? to set the default values

* Update call_center_queue_edit.php

* Prevent an error

* Add domain_name property

* Fix the null coalescing operator

* Removed domain_uuid from the URL

* Change condition to check sip_profile_domain_name

* Refactor domain_uuid declaration and comments

Removed redundant domain_uuid declaration and updated comments.

* Account for an empty value

* Refactor constructor to use settings array

Updated constructor to accept settings array for domain UUID and database initialization.

* Refactor xml_cdr.php to improve variable organization

Removed duplicate domain_uuid declaration and reorganized private variables for better structure.

* Enhance transcription button logic and icon display

Updated transcription button visibility conditions and improved application icon handling in the call flow summary.

* Refactor settings initialization in domains.php

Updated settings initialization to include domain_uuid and user_uuid.

* Modify domain change condition in require.php

Updated condition to check if 'domain_change' is not empty before proceeding.

* Set default_setting_enabled to true by default

* Enhance domain UUID check in access controls

* Enhance domain UUID check in settings list

* Refactor category display logic in vars.php

* Simplify list row URL generation

Removed domain UUID check from list row URL construction.

* Refactor module category display logic

* Fix SQL query by removing parameters variable

* Initialize result_count variable for call recordings

* Refactor leg variable usage in xml_cdr_details.php

* Update conference_room_edit.php

* Change GET to REQUEST for order and search variables

* Set timezone and SQL time format in recordings.php

Added timezone and SQL time format settings.

* Set default for ring group greeting

* Improve domain UUID check in stream listing

* Handle null voicemail_option_param safely

* Add file existence check for greeting files

Check if greeting file exists before getting size and date.

* Improve domain UUID check in email templates

* Update FIFO strategy dropdown and description text

* Add multilingual agent descriptions

Added multilingual descriptions for agents in the app_languages.php file.

* Add music on hold descriptions

* Add the chime list description

Updated copyright year from 2024 to 2025.

* Fix domain UUID check and handle email subject decoding

* Add null coalescing for $value in email_test.php

Ensure $value is not null by providing a default empty string.

* Handle undefined dialplan_uuid in input field

* Add translations for 'Status' label in multiple languages

* Fix typo in config instance check

---------

Co-authored-by: frytimo <tim@fusionpbx.com>
2025-10-15 21:24:59 -06:00
FusionPBX
d6ac324819 Update DND settings in Yealink configuration 2025-10-15 11:22:45 -06:00
Alex
80a84c69f1 Security - Add headers for X-Content-Type-Options and Referrer-Policy (#7571) 2025-10-14 13:43:06 -06:00
Alex
8c82c7077b Security - Add headers for X-Frame-Options and Content-Security-Policy (#7564) 2025-10-13 13:03:52 -06:00
FusionPBX
435ef38c88 Fix the user settings
- When language is changed, update the menu and translations immediately
- When time zone is changed, update it immediately
- Flush the settings apcu cache if enabled
2025-10-10 12:01:51 -06:00
FusionPBX
ec852b10f8 Rewrite the outbound_route_to_bridge function
- Make the outbound_routes array more intuitive
- Fix the toll_allow filtering to use the correct outbound route
2025-10-10 01:00:52 -06:00
FusionPBX
76e2e7d3b7 Remove database app_name and app_uuid (#7562)
- Remove database app_name, app_uuid
  - This is handled automatically by the database class
- Remove redundant database::new()
2025-10-09 17:54:05 -06:00
frytimo
019dca3596 Add helper functions to parent service class. (#7550)
* Add helper functions to parent service class.
Removed existing functions from base_websocket_system class.

* Update service.php
2025-10-09 12:53:45 -06:00
FusionPBX
ad7aad3818 Update database.php 2025-10-06 12:53:47 -06:00
FusionPBX
db6fb3ca43 Fix handling for a boolean value 2025-10-06 10:40:37 -06:00
FusionPBX
fee6134d34 Update child data change detection and message code 2025-10-04 12:45:26 -06:00