Commit Graph

540 Commits

Author SHA1 Message Date
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
markjcrane
1513bd3301 Add Chinese, Korean, and Japanese translations 2023-05-03 10:36:25 -06:00
markjcrane
28fe89066e Add Chinese, Korean, and Japanese translations 2023-05-02 22:05:16 -06:00
FusionPBX
5a3b35cb83 Add additional languages (#6654) 2023-05-02 16:12:06 -06:00
FusionPBX
66322d63d9 Update app_languages.php 2023-04-30 00:10:36 -06:00
FusionPBX
a384772c07 Update app_languages.php 2023-04-30 00:08:33 -06:00
FusionPBX
5b9e9f54a8 Add missing languages 2023-04-29 23:51:25 -06:00
frytimo
69bd42af05 remove unneeded destruct methods as GC has higher performance (#6631)
Co-authored-by: Tim Fry <tim@voipstratus.com>
2023-04-27 20:18:53 -06:00
FusionPBX
dbeb793710 Get the destination_number when needed
If the user doesn't have permission to set the destination_number then get it from the database
2023-04-10 12:09:14 -06:00
FusionPBX
e2c22776ce Country code note required but highly recommended 2023-04-03 09:44:08 -06:00
FusionPBX
4dbee9b596 Fix bridge statements from recent change
Example bridge statement broken by the sanitize

before
sofia/internal/$1${regex(${sofia_contact(101@dev.local)}|^[^@]+(.*)|%1)}

after
sofia/internal/1{regex({sofia_contact(101@dev.local)}|^[^@]+(.*)|%1)}
2023-03-31 19:00:23 -06:00
FusionPBX
eac6f09832 Update how dialplan_detail_type is sanitized
These detail types are safe: ${sip_to_user} and ${sip_req_user}
2023-03-31 13:34:22 -06:00
FusionPBX
08fce99db7 Allow sip_to_user and sip_req_user 2023-03-31 11:10:58 -06:00
Alex
43eb2a5b9d [security] sanitize the xml (#6595)
* Update call_center_queue_edit.php

* fix typo

* Update call_flow_edit.php

* Update conference_center_edit.php

* Update conference_edit.php

* Update destination_edit.php

* Update fax.php

* Update ivr_menu_edit.php

* Update ring_group_edit.php

* Update app_defaults.php

* Update ivr_menu_copy.php

* Update destination_imports.php

* Update app_defaults.php
2023-03-30 12:46:36 -06:00
trideeindhoven
fba26b3f84 Better NL translations (#6590)
Co-authored-by: Jeroen Hermans <jeroen@perfectvoip.nl>
2023-03-28 10:24:11 -06:00
FusionPBX
3247357c5d Remove action == add 2023-03-22 10:01:43 -06:00
FusionPBX
26b0988075 destination_country_code is required 2023-03-22 09:53:28 -06:00
FusionPBX
42ca53567d Re-enable the other destinations
Permission re-added as its used for the destination select list.
2023-03-20 10:33:54 -06:00
FusionPBX
b449bef03e Use preg_replace instead of escape (#6575)
Escape broke auto matching fields use preg_replace instead.
2023-03-10 09:54:49 -07:00
Alex
7326cb845a Set default for enabled (#6556)
* Set default for enabled

* Update conference_profile_edit.php

* Update call_block_edit.php

* Update conference_control_edit.php

* Update conference_control_detail_edit.php

* Update conference_profile_edit.php

* Update conference_profile_param_edit.php

* Update conference_edit.php

* Update destination_edit.php

* Update device_edit.php

* Update device_profile_edit.php

* Update device_vendor_edit.php

* Update email_template_edit.php

* Update extension_edit.php

* Update module_edit.php

* Update phrase_edit.php

* Update ring_group_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update time_condition_edit.php

* Update var_edit.php

* Update voicemail_edit.php

* Update call_block_edit.php

* Update default_setting_edit.php

* Update domain_setting_edit.php

* Update domain_edit.php

* Update user_edit.php

* Update bridge_edit.php

* Update sip_profile_edit.php

* Update sofia_global_setting_edit.php

* Update call_flow_edit.php

* Update email_template_edit.php

* Update call_flow_edit.php

* Update bridge_edit.php

* Update email_template_edit.php

* Update sip_profile_edit.php

* Update sofia_global_setting_edit.php

* Update bridge_edit.php

* Update call_flow_edit.php

* Update conference_control_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update default_setting_edit.php

* Update email_template_edit.php

* Update extension_setting_edit.php

* Update default_setting_edit.php

* Update dashboard_edit.php

* Update dashboard_edit.php

* Update default_setting_edit.php
2023-02-17 14:21:41 -07:00
agree
4c29c3c4cf [security] import pages xss prevention (#6553) 2023-02-14 15:34:53 -07:00
Alex
129d173624 Add enable toggle to more pages (#6549)
* Add bridge enabled toggle

* Update call_block_edit.php

* Add call flows enabled toggle

* Add conference center enabled toggle

* Add conference control detail enabled toggle

* Add conference control enabled toggle

* Add conference enabled toggle

* Add phrase enabled toggle

* Add stream enabled toggle

* Add voicemail enabled toggle

* Add destination enabled toggle

* Add time condition enabled toggle

* Add default settings enabled toggle

* Add domain enabled toggle

* Add email template enabled toggle

* Add module enabled toggle

* Add number translation enabled toggle

* Add sip profile enabled toggle

* Add switch var enabled toggle
2023-02-13 18:02:01 -07:00
FusionPBX
acf3781bd3 Use the destination_prefix permission 2022-11-01 12:07:56 -06:00
FusionPBX
5a71e16f15 Use the config.conf file 2022-10-22 23:45:59 -06:00
FusionPBX
598eb4ab31 Wrap is_array arround foreach 2022-10-13 08:43:32 -06:00
markjcrane
d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
FusionPBX
93dd8bda71 Change variabale name from action to destination_action.
Resolves a conflict with another variable called action.
2022-09-30 16:18:39 -06:00
FusionPBX
884e90ac39 Comment out the database response. 2022-09-18 04:48:17 -06:00
markjcrane
eb5c25aa35 Add insert_date, insert_user, update_date, update_user to all tables 2022-09-18 00:54:37 -06:00
FusionPBX
b17748dc1e Use loop only if destination_actions is an array 2022-09-11 10:22:23 -06:00
FusionPBX
c12cd0d296 Unset destination_app and destination_data
This fixes a bug where a blank empty value shows the previous value.
2022-09-07 16:33:10 -06:00
FusionPBX
8f8e0795ff Add label-file_name 2022-09-06 17:16:40 -06:00
FusionPBX
aa2d0eb477 Show the file name on the second page of the import. 2022-09-06 17:15:35 -06:00
FusionPBX
6bed337061 Chunk the work into batches of a 1000 numbers at a time.
This is useful for customers with over 1000 destination numbers. Will work from command line with any number of destination numbers.
2022-09-01 11:11:13 -06:00
FusionPBX
d62f360f77 Delete the cache in e.164 format. 2022-08-24 16:53:31 -06:00
FusionPBX
e51f48b17f Update app_defaults.php 2022-08-22 17:54:29 -06:00
FusionPBX
2fcd0dbd9a Use destination_app and destination_data 2022-08-22 17:30:31 -06:00
FusionPBX
1b8bf75eff Simplify outbound destinations further by hiding irrelevant settings. 2022-08-17 09:38:24 -06:00
FusionPBX
25d59d69fe On change destination type show and hide specific fields 2022-08-08 13:25:56 -06:00
FusionPBX
b12c474c19 When using the add button send the destination type in the URL. 2022-08-08 12:56:17 -06:00
FusionPBX
854f2bf1f0 Add missing _alternate 2022-08-01 18:20:38 -06:00
FusionPBX
1a96d4007a Additional changes to allow hangup action which has no data. 2022-07-20 09:45:11 -06:00
FusionPBX
aa488eed01 Needed to allow hangup action which has no data. 2022-07-20 09:40:23 -06:00
FusionPBX
89258e09e5 Admin user should have access to the destination_prefix. 2022-07-18 10:42:56 -06:00
FusionPBX
e6d7c76870 Fix the caller ID number label. 2022-07-17 19:09:34 -06:00
FusionPBX
5f8fcc07fb Add destination_prefix required for superadmin. 2022-07-17 18:59:19 -06:00
FusionPBX
8ce558702a Add destination conditions. 2022-07-16 23:31:29 -06:00
FusionPBX
ca5ef8d03d Change label-detail_action to label-destination_actions. 2022-07-16 23:30:15 -06:00
FusionPBX
41c5fa3a3f Add a field and permission called destination_conditions. 2022-07-16 23:29:04 -06:00
FusionPBX
2c7e40bd8e Add destination_conditions, destination_actions, and additional descriptions. 2022-07-16 23:27:59 -06:00