Commit Graph

23224 Commits

Author SHA1 Message Date
FusionPBX
05c499f179 Update permission check for destination actions 2025-10-16 08:56:33 -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
2023e40d99 Cache key add hostname prefix 2025-10-15 21:39:03 -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
e4ca0bf47d Add hostname cache key as a prefix 2025-10-15 20:33:46 -06:00
FusionPBX
4777d8b928 When hostname is used in the cache key use it as a prefix 2025-10-15 20:02:46 -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
d199ed6157 Update 470_valet_park.xml
Remove 2 characters from the previous regular expression to fix the new one.
2025-10-10 16:03:00 -06:00
FusionPBX
3754d741cc Update 470_valet_park.xml
Fix the regular expression to make the sip: prefix optional
- This change is required for Snom D735 and other models of Snom phones.
2025-10-10 15:18:49 -06:00
FusionPBX
3a849d5849 Add settings operator_panel_user_info, operator_panel_caller_info, and operator_panel_call_info 2025-10-10 13:52:07 -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
FusionPBX
d59eab1f94 Update user_profile.php
Unset $parameters array
2025-10-09 17:01:16 -06:00
FusionPBX
fd8dbce64c Update user_profile.php 2025-10-09 16:57:32 -06:00
frytimo
1b7d320f93 Remove logging in the class as the parent class now handles it (#7561)
* Remove logging in the class as the parent class now handles it

* Remove logging in the class as the parent class now handles it
2025-10-09 16:45:58 -06:00
Alex
4959f6a1e7 Update dashboard.php (#7560) 2025-10-09 16:09:18 -06:00
fusionate
1fae31ea86 User Profile: Include some additional form fields from associated contact record. 2025-10-09 14:15:04 -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
76c2ccbf29 Update app_config.php
- Use the correct name
- Update the description
2025-10-09 11:15:05 -06:00
FusionPBX
d86989decb Fix auto daylight savings settings use stop instead of end 2025-10-09 09:30:02 -06:00
Alex
e90d47c6e7 Fix dashboard copy button (#7557) 2025-10-08 16:51:26 -06:00
FusionPBX
3ec8053909 Update app_defaults.php 2025-10-08 16:07:50 -06:00
FusionPBX
72ee1a91cf Provision settings for templates use type text
The configuration template is an XML string or other type of config file that is delivered to the endpoint as a string.
2025-10-08 16:02:11 -06:00
FusionPBX
a4d632b3df Default sip_profile_enabled to true 2025-10-08 13:59:59 -06:00
frytimo
4aa8fe8a47 Fix missing profiles on a new install (#7551) 2025-10-08 12:08:14 -06:00
FusionPBX
55a9e58dcf Fix follow me
Cast to a string and evaluating conditions as 'true' or 'false' is the most effective approach for Lua.
2025-10-06 16:21:58 -06:00
FusionPBX
2d2f18d001 Update fax send to use empty 2025-10-06 13:34:33 -06:00
FusionPBX
ad7aad3818 Update database.php 2025-10-06 12:53:47 -06:00
fusionate
ef79a896cb Upgrade - Menu: Add missing global $database variable. 2025-10-06 11:02:54 -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
FusionPBX
d329a18ee1 Update database.php 2025-10-04 12:24:17 -06:00
Alex
abcd983503 Contact Edit: Fix primary setting default values (#7549)
* Contact Edit: Fix primary setting default values

* Update contact_address_edit.php

* Update contact_attachment_edit.php

* Update contact_edit.php

* Update contact_email_edit.php

* Update contact_phone_edit.php

* Update contact_setting_edit.php

* Update contact_url_edit.php

* Update contact_edit.php
2025-10-03 16:36:43 -06:00
FusionPBX
31fef269e4 Use gettype on the values
- Add boolean handing to ifelse string
- Use trim only when the variable type is string

Add params for :child_key_name, :parent_key_value
- These were strictly sanitized
- Updated to not appear unsafe

Remove database method: add, and update
- Replaced by the save method several years ago
2025-10-03 16:29:43 -06:00
Alex
e53199fd28 Add HttpOnly, Secure, and Samesite session settings to config.conf (#7547)
* Add HttpOnly, Secure, and Samesite session settings to config.conf

* Update upgrade_menu.php

* Update upgrade.php

* Update upgrade.php

* Update install.php
2025-10-03 16:06:47 -06:00
Alex
f97e08d418 Email Template Edit: Fix enabled default value (#7546) 2025-10-03 15:57:13 -06:00
Alex
3a0c26d694 Devices: Fix default values (#7545)
* Devices: Fix default values

* Update device_profile_edit.php

* Update device_vendor_edit.php

* Update device_vendor_function_edit.php

* Email Template Edit: Fix enabled default value

* Update email_template_edit.php

* Update email_template_edit.php
2025-10-03 15:56:41 -06:00
Alex
57f6927119 IVR Menu Edit: Fix default values (#7544)
* IVR Menu Edit: Fix default values

* Update ivr_menu_edit.php
2025-10-03 15:55:49 -06:00
FusionPBX
7005e1a612 Update ivr_menu_edit.php 2025-10-03 14:57:44 -06:00
FusionPBX
e82a21ba11 Update child validate changes
- Include value trim
2025-10-03 14:02:54 -06:00
FusionPBX
b5f40571a9 IVR Menu order select improve selected
- Update the HTML select to use non-leading 0's. 
- Example in the value replace 000 with 0.
2025-10-03 13:33:04 -06:00
FusionPBX
f7e23476ba Normalize the user data to match the database
- Used to check if the data has changed
- Only update modified data
- Added the following
   - normalize null
   - normalize numeric
   - normalize string
   - normalize boolean (updated)
2025-10-03 11:59:46 -06:00
FusionPBX
dae3262851 Update database handling for app_name and app_uuid
If app_name is not found, then try the singular form of the class name
2025-10-03 10:19:34 -06:00
Alex
175037d268 Call Centers: Fix default values (#7543)
* Call Centers: Fix default values

* Update call_center_agent_edit.php
2025-10-03 09:56:08 -06:00
Alex
e8717e4ac7 Gateway Edit: Fix default values (#7542) 2025-10-03 09:35:23 -06:00
frytimo
871e5c0f9e Initial Commit (#7541) 2025-10-03 09:17:11 -06:00